]> andersk Git - openssh.git/commitdiff
- deraadt@cvs.openbsd.org 2001/02/28 17:52:54
authormouring <mouring>
Mon, 5 Mar 2001 06:22:01 +0000 (06:22 +0000)
committermouring <mouring>
Mon, 5 Mar 2001 06:22:01 +0000 (06:22 +0000)
     [misc.c]
     for completeness, copy pw_gecos too

ChangeLog
misc.c

index 471ba5a6b00a4b601760505ea7ed79fe79a16b35..7ad5f66603caf728417dd7a0c824c21383993562 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -79,6 +79,9 @@
    - markus@cvs.openbsd.org 2001/02/28 12:55:07
      [channels.c]
      unify debug messages
+   - deraadt@cvs.openbsd.org 2001/02/28 17:52:54
+     [misc.c]
+     for completeness, copy pw_gecos too
 
 20010304
  - (bal) Remove make-ssh-known-hosts.1 since it's no longer valid.
diff --git a/misc.c b/misc.c
index fdfd13ca67723c91fa68a169656a614d11840af4..24f7df597db2b18fb503fc6878784f5685e8b781 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -1,4 +1,4 @@
-/*     $OpenBSD: misc.c,v 1.3 2001/02/28 05:34:28 deraadt Exp $        */
+/*     $OpenBSD: misc.c,v 1.4 2001/02/28 17:52:54 deraadt Exp $        */
 
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: misc.c,v 1.3 2001/02/28 05:34:28 deraadt Exp $");
+RCSID("$OpenBSD: misc.c,v 1.4 2001/02/28 17:52:54 deraadt Exp $");
 
 #include "misc.h"
 #include "log.h"
@@ -101,9 +101,11 @@ struct passwd *
 pwcopy(struct passwd *pw)
 {
        struct passwd *copy = xmalloc(sizeof(*copy));
+
        memset(copy, 0, sizeof(*copy));
        copy->pw_name = xstrdup(pw->pw_name);
        copy->pw_passwd = xstrdup(pw->pw_passwd);
+       copy->pw_gecos = xstrdup(pw->pw_gecos);
        copy->pw_uid = pw->pw_uid;
        copy->pw_gid = pw->pw_gid;
        copy->pw_class = xstrdup(pw->pw_class);
This page took 0.043717 seconds and 5 git commands to generate.