about summary refs log tree commit diff
path: root/sysdeps/unix/sysv
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 /sysdeps/unix/sysv
parent451f001b50870604e1f2daef12f04f9f460d3997 (diff)
downloadglibc-1086d70d916fd0eb969b3d89ff88abd35f6a5c34.tar.gz
glibc-1086d70d916fd0eb969b3d89ff88abd35f6a5c34.tar.xz
glibc-1086d70d916fd0eb969b3d89ff88abd35f6a5c34.zip
Fix handling of missing syscall in Linux mkdirat.
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r--sysdeps/unix/sysv/linux/mkdirat.c4
1 files changed, 2 insertions, 2 deletions
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