diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-08-20 20:14:21 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-08-20 20:14:21 +0000 |
commit | d762684b511b6a425d9e0e2ff7473ffbfc98687d (patch) | |
tree | a0ae3f9bdac299ea86ca20807d3a6cca0db24d51 /pwd | |
parent | Update. (diff) | |
download | glibc-d762684b511b6a425d9e0e2ff7473ffbfc98687d.tar.gz glibc-d762684b511b6a425d9e0e2ff7473ffbfc98687d.tar.bz2 glibc-d762684b511b6a425d9e0e2ff7473ffbfc98687d.zip |
Update.
1998-08-20 20:07 Ulrich Drepper <drepper@cygnus.com>
* pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
cast them to unsigned long int.
* pwd/putpwent.c (putpwent): Likewise.
Patch by John Tobey <jtobey@banta-im.com>.
1998-08-20 17:14 H.J. Lu <hjl@gnu.org>
* libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
_IO_pos_BAD.
1998-02-20 17:54 H.J. Lu <hjl@gnu.org>
* libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
_IO_SYSSEEK fails.
* sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
Add sys/sendfile.h.
* sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
* sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
* sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
* sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
sendfile.
Diffstat (limited to 'pwd')
-rw-r--r-- | pwd/getpw.c | 5 | ||||
-rw-r--r-- | pwd/putpwent.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/pwd/getpw.c b/pwd/getpw.c index 5f738724a9..52c3db7afb 100644 --- a/pwd/getpw.c +++ b/pwd/getpw.c @@ -50,8 +50,9 @@ __getpw (uid, buf) if (__getpwuid_r (uid, &resbuf, tmpbuf, buflen, &p) < 0) return -1; - if (sprintf (buf, "%s:%s:%u:%u:%s:%s:%s", p->pw_name, p->pw_passwd, - p->pw_uid, p->pw_gid, p->pw_gecos, p->pw_dir, p->pw_shell) < 0) + if (sprintf (buf, "%s:%s:%lu:%lu:%s:%s:%s", p->pw_name, p->pw_passwd, + (unsigned long int) p->pw_uid, (unsigned long int) p->pw_gid, + p->pw_gecos, p->pw_dir, p->pw_shell) < 0) return -1; return 0; diff --git a/pwd/putpwent.c b/pwd/putpwent.c index 7ab48c16d6..ac1fd7e464 100644 --- a/pwd/putpwent.c +++ b/pwd/putpwent.c @@ -35,9 +35,9 @@ putpwent (p, stream) return -1; } - if (fprintf (stream, "%s:%s:%u:%u:%s:%s:%s\n", + if (fprintf (stream, "%s:%s:%lu:%lu:%s:%s:%s\n", p->pw_name, _S (p->pw_passwd), - p->pw_uid, p->pw_gid, + (unsigned long int) p->pw_uid, (unsigned long int) p->pw_gid, _S (p->pw_gecos), _S (p->pw_dir), _S (p->pw_shell)) < 0) return -1; |