* passwe.cc (getpwnam_r): Initialize pw_comment field.
This commit is contained in:
parent
7a198a0675
commit
7d0e78a71b
|
@ -1,3 +1,7 @@
|
|||
2003-09-08 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* passwe.cc (getpwnam_r): Initialize pw_comment field.
|
||||
|
||||
2003-09-08 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* passwd.cc (getpwuid_r32): Initialize pw_comment field.
|
||||
|
|
|
@ -241,6 +241,7 @@ getpwnam_r (const char *nam, struct passwd *pwd, char *buffer, size_t bufsize, s
|
|||
pwd->pw_dir = pwd->pw_name + strlen (temppw->pw_name) + 1;
|
||||
pwd->pw_shell = pwd->pw_dir + strlen (temppw->pw_dir) + 1;
|
||||
pwd->pw_gecos = pwd->pw_shell + strlen (temppw->pw_shell) + 1;
|
||||
pwd->pw_comment = NULL;
|
||||
pwd->pw_passwd = pwd->pw_gecos + strlen (temppw->pw_gecos) + 1;
|
||||
strcpy (pwd->pw_name, temppw->pw_name);
|
||||
strcpy (pwd->pw_dir, temppw->pw_dir);
|
||||
|
|
Loading…
Reference in New Issue