]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix handling of missing syscall in Linux mkdirat.
authorUlrich Drepper <drepper@gmail.com>
Thu, 13 Jan 2011 17:42:06 +0000 (12:42 -0500)
committerPetr Baudis <pasky@suse.cz>
Thu, 3 Feb 2011 19:59:00 +0000 (20:59 +0100)
(cherry picked from commit 1086d70d916fd0eb969b3d89ff88abd35f6a5c34)

ChangeLog
sysdeps/unix/sysv/linux/mkdirat.c

index 86b7749789a00c99708b592112156b3c3ce08e40..5525f1fa5e31bbdb45850a03f0da6f5a003be33e 100644 (file)
--- 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.
index aa89d08730d3a8f2fb4d8e7f085f16a967a9fa4c..73ebbe693b5223d62fc7913224bf630114dcba57 100644 (file)
@@ -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