diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-03-05 06:22:01 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-03-05 06:22:01 +0000 |
commit | 4030442d77f13f87ecd58d2e43d688b206abb0f4 (patch) | |
tree | f71525c16249ef093aa42196525fcb04a5ed30ab | |
parent | cc74df79d79f20d685c0968430857de59320811c (diff) |
- deraadt@cvs.openbsd.org 2001/02/28 17:52:54
[misc.c]
for completeness, copy pw_gecos too
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | misc.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -79,6 +79,9 @@ | |||
79 | - markus@cvs.openbsd.org 2001/02/28 12:55:07 | 79 | - markus@cvs.openbsd.org 2001/02/28 12:55:07 |
80 | [channels.c] | 80 | [channels.c] |
81 | unify debug messages | 81 | unify debug messages |
82 | - deraadt@cvs.openbsd.org 2001/02/28 17:52:54 | ||
83 | [misc.c] | ||
84 | for completeness, copy pw_gecos too | ||
82 | 85 | ||
83 | 20010304 | 86 | 20010304 |
84 | - (bal) Remove make-ssh-known-hosts.1 since it's no longer valid. | 87 | - (bal) Remove make-ssh-known-hosts.1 since it's no longer valid. |
@@ -4271,4 +4274,4 @@ | |||
4271 | - Wrote replacements for strlcpy and mkdtemp | 4274 | - Wrote replacements for strlcpy and mkdtemp |
4272 | - Released 1.0pre1 | 4275 | - Released 1.0pre1 |
4273 | 4276 | ||
4274 | $Id: ChangeLog,v 1.874 2001/03/05 06:20:14 mouring Exp $ | 4277 | $Id: ChangeLog,v 1.875 2001/03/05 06:22:01 mouring Exp $ |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: misc.c,v 1.3 2001/02/28 05:34:28 deraadt Exp $ */ | 1 | /* $OpenBSD: misc.c,v 1.4 2001/02/28 17:52:54 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
@@ -25,7 +25,7 @@ | |||
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "includes.h" | 27 | #include "includes.h" |
28 | RCSID("$OpenBSD: misc.c,v 1.3 2001/02/28 05:34:28 deraadt Exp $"); | 28 | RCSID("$OpenBSD: misc.c,v 1.4 2001/02/28 17:52:54 deraadt Exp $"); |
29 | 29 | ||
30 | #include "misc.h" | 30 | #include "misc.h" |
31 | #include "log.h" | 31 | #include "log.h" |
@@ -101,9 +101,11 @@ struct passwd * | |||
101 | pwcopy(struct passwd *pw) | 101 | pwcopy(struct passwd *pw) |
102 | { | 102 | { |
103 | struct passwd *copy = xmalloc(sizeof(*copy)); | 103 | struct passwd *copy = xmalloc(sizeof(*copy)); |
104 | |||
104 | memset(copy, 0, sizeof(*copy)); | 105 | memset(copy, 0, sizeof(*copy)); |
105 | copy->pw_name = xstrdup(pw->pw_name); | 106 | copy->pw_name = xstrdup(pw->pw_name); |
106 | copy->pw_passwd = xstrdup(pw->pw_passwd); | 107 | copy->pw_passwd = xstrdup(pw->pw_passwd); |
108 | copy->pw_gecos = xstrdup(pw->pw_gecos); | ||
107 | copy->pw_uid = pw->pw_uid; | 109 | copy->pw_uid = pw->pw_uid; |
108 | copy->pw_gid = pw->pw_gid; | 110 | copy->pw_gid = pw->pw_gid; |
109 | copy->pw_class = xstrdup(pw->pw_class); | 111 | copy->pw_class = xstrdup(pw->pw_class); |