diff options
author | Christopher Faylor <me@cgf.cx> | 2003-01-02 00:03:23 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-01-02 00:03:23 +0000 |
commit | 2665fb15949da40a9653c3e5bbed486276a1aaf7 (patch) | |
tree | ba20dca224910c7099cedc42a5b24f11629c3170 | |
parent | 8619b42be78d0e18192bded34268eb2614a98eba (diff) | |
download | newlib-2665fb15949da40a9653c3e5bbed486276a1aaf7.zip newlib-2665fb15949da40a9653c3e5bbed486276a1aaf7.tar.gz newlib-2665fb15949da40a9653c3e5bbed486276a1aaf7.tar.bz2 |
* passwd.cc (getpwuid_r32): Revert previous change.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/passwd.cc | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 2e5e4e9..513dd82 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2003-01-01 Christopher Faylor <cgf@redhat.com> + * passwd.cc (getpwuid_r32): Revert previous change. + +2003-01-01 Christopher Faylor <cgf@redhat.com> + * sysconf.cc (sysconf): Return arbitrary values for _SC_GETGR_R_SIZE_MAX, _SC_LOGIN_NAME_MAX, _SC_GETPW_R_SIZE_MAX. diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc index 8f947a4..c3bb7a1 100644 --- a/winsup/cygwin/passwd.cc +++ b/winsup/cygwin/passwd.cc @@ -266,8 +266,7 @@ getpwuid_r32 (__uid32_t uid, struct passwd *pwd, char *buffer, size_t bufsize, s /* check needed buffer size. */ size_t needsize = strlen (temppw->pw_name) + strlen (temppw->pw_dir) + strlen (temppw->pw_shell) + strlen (temppw->pw_gecos) + - strlen (temppw->pw_passwd) + 5 + - sizeof (temppw->pw_uid) + sizeof (temppw->pw_gid); + strlen (temppw->pw_passwd) + 5; if (needsize > bufsize) return ERANGE; |