diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-02-03 05:26:34 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-02-03 05:26:34 +0000 |
commit | 86231f04f0d7e84566666e16b503c96f9c7c04c1 (patch) | |
tree | e26f280fccc954c8ecb295eb1019398c821566ee /sysdeps/unix/sysv/linux/futimesat.c | |
parent | 0d7ba87149297b71686a3e64b6deb2f474ac9a9b (diff) | |
download | glibc-86231f04f0d7e84566666e16b503c96f9c7c04c1.tar.gz glibc-86231f04f0d7e84566666e16b503c96f9c7c04c1.tar.xz glibc-86231f04f0d7e84566666e16b503c96f9c7c04c1.zip |
[__NR_futimesat] (futimesat): If file is NULL use __futimes.
Diffstat (limited to 'sysdeps/unix/sysv/linux/futimesat.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/futimesat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/futimesat.c b/sysdeps/unix/sysv/linux/futimesat.c index 514f456927..7c96b78045 100644 --- a/sysdeps/unix/sysv/linux/futimesat.c +++ b/sysdeps/unix/sysv/linux/futimesat.c @@ -42,6 +42,9 @@ futimesat (fd, file, tvp) if (__have_atfcts >= 0) # endif { + if (file == NULL) + return __futimes (fd, tvp); + result = INLINE_SYSCALL (futimesat, 3, fd, file, tvp); # ifndef __ASSUME_ATFCTS if (result == -1 && errno == ENOSYS) |