[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r9516 - in /fsf/trunk/libc: ChangeLog sysdeps/unix/sysv/linux/futimens.c



Author: eglibc
Date: Tue Dec 22 00:02:08 2009
New Revision: 9516

Log:
Import glibc-mainline for 2009-12-22

Modified:
    fsf/trunk/libc/ChangeLog
    fsf/trunk/libc/sysdeps/unix/sysv/linux/futimens.c

Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Tue Dec 22 00:02:08 2009
@@ -1,3 +1,7 @@
+2009-12-21  Ulrich Drepper  <drepper@xxxxxxxxxx>
+
+	* sysdeps/unix/sysv/linux/futimens.c: Handle AT_FDCWD.
+
 2009-12-15  Ulrich Drepper  <drepper@xxxxxxxxxx>
 
 	[BZ #11093]

Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/futimens.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/futimens.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/futimens.c Tue Dec 22 00:02:08 2009
@@ -33,6 +33,11 @@
 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);