about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-01-13 12:42:06 -0500
committerUlrich Drepper <drepper@gmail.com>2011-01-13 12:42:06 -0500
commit1086d70d916fd0eb969b3d89ff88abd35f6a5c34 (patch)
tree5b6d18db9462b6b20e5c8abd59a7fe0f96e92393
parent451f001b50870604e1f2daef12f04f9f460d3997 (diff)
downloadglibc-1086d70d916fd0eb969b3d89ff88abd35f6a5c34.tar.gz
glibc-1086d70d916fd0eb969b3d89ff88abd35f6a5c34.tar.xz
glibc-1086d70d916fd0eb969b3d89ff88abd35f6a5c34.zip
Fix handling of missing syscall in Linux mkdirat.
-rw-r--r--ChangeLog4
-rw-r--r--NEWS10
-rw-r--r--sysdeps/unix/sysv/linux/mkdirat.c4
3 files changed, 11 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index b1d391c064..3035d3dbfb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
 
+	[BZ #12397]
+	* sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
+	syscall.
+
 	[BZ #10484]
 	* nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
 	temporary buffer used to handle multi lookups locally.
diff --git a/NEWS b/NEWS
index a3025ee7c0..dd212d6ee4 100644
--- a/NEWS
+++ b/NEWS
@@ -10,9 +10,9 @@ Version 2.13
 * The following bugs are resolved with this release:
 
   3268, 7066, 10085, 10484, 10851, 11149, 11155, 11611, 11640, 11655, 11701,
-  11840, 11856, 11883, 11903, 11904, 11968, 11979, 12005, 12037,
-  12067, 12077, 12078, 12092, 12093, 12107, 12108, 12113, 12140,
-  12159, 12167, 12191, 12194, 12201, 12204, 12205, 12207, 12348, 12394
+  11840, 11856, 11883, 11903, 11904, 11968, 11979, 12005, 12037, 12067,
+  12077, 12078, 12092, 12093, 12107, 12108, 12113, 12140, 12159, 12167,
+  12191, 12194, 12201, 12204, 12205, 12207, 12348, 12394, 12397
 
 * New Linux interfaces: prlimit, prlimit64, fanotify_init, fanotify_mark
 
@@ -1924,8 +1924,7 @@ Version 1.04
 ----------------------------------------------------------------------
 Copyright information:
 
-Copyright (C) 1992-1999,2000,2001,2002,2003,2004,2005,2006
-	Free Software Foundation, Inc.
+Copyright (C) 1992-2009, 2010, 2011 Free Software Foundation, Inc.
 
    Permission is granted to anyone to make or distribute verbatim copies
    of this document as received, in any medium, provided that the
@@ -1939,4 +1938,5 @@ Copyright (C) 1992-1999,2000,2001,2002,2003,2004,2005,2006
 
 Local variables:
 version-control: never
+fill-column: 76
 End:
diff --git a/sysdeps/unix/sysv/linux/mkdirat.c b/sysdeps/unix/sysv/linux/mkdirat.c
index aa89d08730..73ebbe693b 100644
--- a/sysdeps/unix/sysv/linux/mkdirat.c
+++ b/sysdeps/unix/sysv/linux/mkdirat.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2005, 2006, 2009 Free Software Foundation, Inc.
+/* Copyright (C) 2005, 2006, 2009, 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -43,7 +43,7 @@ mkdirat (fd, file, mode)
     {
       res = INLINE_SYSCALL (mkdirat, 3, fd, file, mode);
 # ifndef __ASSUME_ATFCTS
-      if (res == -1 && res == ENOSYS)
+      if (res == -1 && errno == ENOSYS)
 	__have_atfcts = -1;
       else
 # endif