* passwd.cc (getpwuid_r32): Revert previous change.
This commit is contained in:
parent
8619b42be7
commit
2665fb1594
@ -1,3 +1,7 @@
|
|||||||
|
2003-01-01 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* passwd.cc (getpwuid_r32): Revert previous change.
|
||||||
|
|
||||||
2003-01-01 Christopher Faylor <cgf@redhat.com>
|
2003-01-01 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* sysconf.cc (sysconf): Return arbitrary values for
|
* sysconf.cc (sysconf): Return arbitrary values for
|
||||||
|
@ -266,8 +266,7 @@ getpwuid_r32 (__uid32_t uid, struct passwd *pwd, char *buffer, size_t bufsize, s
|
|||||||
/* check needed buffer size. */
|
/* check needed buffer size. */
|
||||||
size_t needsize = strlen (temppw->pw_name) + strlen (temppw->pw_dir) +
|
size_t needsize = strlen (temppw->pw_name) + strlen (temppw->pw_dir) +
|
||||||
strlen (temppw->pw_shell) + strlen (temppw->pw_gecos) +
|
strlen (temppw->pw_shell) + strlen (temppw->pw_gecos) +
|
||||||
strlen (temppw->pw_passwd) + 5 +
|
strlen (temppw->pw_passwd) + 5;
|
||||||
sizeof (temppw->pw_uid) + sizeof (temppw->pw_gid);
|
|
||||||
if (needsize > bufsize)
|
if (needsize > bufsize)
|
||||||
return ERANGE;
|
return ERANGE;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user