1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

Fix handling of missing syscall in Linux mkdirat.

This commit is contained in:
Ulrich Drepper
2011-01-13 12:42:06 -05:00
parent 451f001b50
commit 1086d70d91
3 changed files with 11 additions and 7 deletions

View 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