From: Ulrich Drepper Date: Thu, 13 Jan 2011 17:42:06 +0000 (-0500) Subject: Fix handling of missing syscall in Linux mkdirat. X-Git-Tag: upstream/2.30~12586 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1086d70d916fd0eb969b3d89ff88abd35f6a5c34;p=external%2Fglibc.git Fix handling of missing syscall in Linux mkdirat. --- diff --git a/ChangeLog b/ChangeLog index b1d391c..3035d3d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-01-13 Ulrich Drepper + [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 a3025ee..dd212d6 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 aa89d08..73ebbe6 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