Handle AT_FDCWD in futimens.
This commit is contained in:
parent
f01c2359eb
commit
4286fa41ed
@ -1,3 +1,7 @@
|
||||
2009-12-21 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
|
||||
|
||||
2009-12-15 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
[BZ #11093]
|
||||
|
@ -33,6 +33,11 @@ int
|
||||
futimens (int fd, const struct timespec tsp[2])
|
||||
{
|
||||
#ifdef __NR_utimensat
|
||||
if (fd < 0)
|
||||
{
|
||||
__set_errno (EBADF);
|
||||
return -1;
|
||||
}
|
||||
return INLINE_SYSCALL (utimensat, 4, fd, NULL, tsp, 0);
|
||||
#else
|
||||
__set_errno (ENOSYS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user