diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-07-08 00:44:35 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-07-08 00:44:35 +0000 |
commit | 9c2322bc08c01e34c7488ef12c1d1bf26097190b (patch) | |
tree | ec433de31ad6b94ffc5b422c95fcefb9895fd571 /io | |
parent | 762a2918eee55943319f2c81f35257d59450ad5b (diff) | |
download | glibc-9c2322bc08c01e34c7488ef12c1d1bf26097190b.tar glibc-9c2322bc08c01e34c7488ef12c1d1bf26097190b.tar.gz glibc-9c2322bc08c01e34c7488ef12c1d1bf26097190b.tar.bz2 glibc-9c2322bc08c01e34c7488ef12c1d1bf26097190b.zip |
Update.cvs/libc-ud-970707
1997-07-08 02:18 Ulrich Drepper <drepper@cygnus.com>
* io/lockf.c (lockf): Clear fl before using.
Patch by sr@adb.fr.
* libio/strops.c: Correctly handle _IO_write_end.
* nss/libnss_files.map: Add __nss_netgroup_parseline.
* nss/nss_files/files-netgroup.c (_nss_netgroup_parseline): Don't
panic if setnetgrent wasn't called before, return error.
Patch by Thorsten Kukuk <kukuk@uni-paderborn.de>.
* time/mktime.c: Define localtime_r function as my_mktime_localtime_r
if locally defined.
* time/strftime.c: Define localtime_r function as my_ftime_localtime_r
if locally defined.
Define tm_diff function as ftime_tm_diff if locally defined.
Reported by Richard Stallman <rms@gnu.ai.mit.edu>.
Diffstat (limited to 'io')
-rw-r--r-- | io/lockf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/io/lockf.c b/io/lockf.c index c7cc6a60c0..7bf90c9b59 100644 --- a/io/lockf.c +++ b/io/lockf.c @@ -20,6 +20,7 @@ #include <unistd.h> #include <fcntl.h> #include <errno.h> +#include <string.h> /* lockf is a simplified interface to fcntl's locking facilities. */ @@ -28,6 +29,8 @@ lockf (int fd, int cmd, off_t len) { struct flock fl; + memset ((char *) &fl, '\0', sizeof (fl)); + switch (cmd) { case F_TEST: |