summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/misc.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-06-16 08:58:35 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-06-16 08:58:35 +0000
commitd824eac8e0a2bb8d6dc523ed1cc3027a3e1e5420 (patch)
tree3683703290b99692ac5f7bba07864bacd5c6a0e5 /usr.bin/ssh/misc.c
parent82bafe6039d2730662266797069c875456689cc4 (diff)
copy pw_expire and pw_change, too.
Diffstat (limited to 'usr.bin/ssh/misc.c')
-rw-r--r--usr.bin/ssh/misc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/misc.c b/usr.bin/ssh/misc.c
index e9311e9ea2d..19bb16149c7 100644
--- a/usr.bin/ssh/misc.c
+++ b/usr.bin/ssh/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.10 2001/06/16 08:49:38 markus Exp $ */
+/* $OpenBSD: misc.c,v 1.11 2001/06/16 08:58:34 markus Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
@@ -25,7 +25,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: misc.c,v 1.10 2001/06/16 08:49:38 markus Exp $");
+RCSID("$OpenBSD: misc.c,v 1.11 2001/06/16 08:58:34 markus Exp $");
#include "misc.h"
#include "log.h"
@@ -131,6 +131,8 @@ pwcopy(struct passwd *pw)
copy->pw_gecos = xstrdup(pw->pw_gecos);
copy->pw_uid = pw->pw_uid;
copy->pw_gid = pw->pw_gid;
+ copy->pw_expire = pw->pw_expire;
+ copy->pw_change = pw->pw_change;
copy->pw_class = xstrdup(pw->pw_class);
copy->pw_dir = xstrdup(pw->pw_dir);
copy->pw_shell = xstrdup(pw->pw_shell);