* passwd.cc (getpwuid_r32): Initialize pw_comment field.
This commit is contained in:
parent
9547a8b3c3
commit
7a198a0675
|
@ -1,3 +1,7 @@
|
||||||
|
2003-09-08 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* passwd.cc (getpwuid_r32): Initialize pw_comment field.
|
||||||
|
|
||||||
2003-09-08 Christopher Faylor <cgf@redhat.com>
|
2003-09-08 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* sigproc.cc (wait_sig_inited): Remove assertion since it is racy.
|
* sigproc.cc (wait_sig_inited): Remove assertion since it is racy.
|
||||||
|
|
|
@ -183,6 +183,7 @@ getpwuid_r32 (__uid32_t uid, struct passwd *pwd, char *buffer, size_t bufsize, s
|
||||||
pwd->pw_dir = pwd->pw_name + strlen (temppw->pw_name) + 1;
|
pwd->pw_dir = pwd->pw_name + strlen (temppw->pw_name) + 1;
|
||||||
pwd->pw_shell = pwd->pw_dir + strlen (temppw->pw_dir) + 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_gecos = pwd->pw_shell + strlen (temppw->pw_shell) + 1;
|
||||||
|
pwd->pw_comment = NULL;
|
||||||
pwd->pw_passwd = pwd->pw_gecos + strlen (temppw->pw_gecos) + 1;
|
pwd->pw_passwd = pwd->pw_gecos + strlen (temppw->pw_gecos) + 1;
|
||||||
strcpy (pwd->pw_name, temppw->pw_name);
|
strcpy (pwd->pw_name, temppw->pw_name);
|
||||||
strcpy (pwd->pw_dir, temppw->pw_dir);
|
strcpy (pwd->pw_dir, temppw->pw_dir);
|
||||||
|
|
Loading…
Reference in New Issue