From 978b8297507b7d8c36b18156b6ef559df3730d79f86887326ae18585034e30ca Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Fri, 28 Jan 2011 14:54:41 +0000 Subject: [PATCH] - Fix ENOSYS detection for mkdirat. [bso#12397] OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=46 --- glibc-2.11.3-bso12397.diff | 11 +++++++++++ glibc.changes | 5 +++++ glibc.spec | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 glibc-2.11.3-bso12397.diff diff --git a/glibc-2.11.3-bso12397.diff b/glibc-2.11.3-bso12397.diff new file mode 100644 index 0000000..0b54d63 --- /dev/null +++ b/glibc-2.11.3-bso12397.diff @@ -0,0 +1,11 @@ +--- sysdeps/unix/sysv/linux/mkdirat.c.orig 2011-01-28 15:50:00.000000000 +0100 ++++ sysdeps/unix/sysv/linux/mkdirat.c 2011-01-28 15:51:42.000000000 +0100 +@@ -43,7 +43,7 @@ + { + 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 diff --git a/glibc.changes b/glibc.changes index 82d5407..adc4b56 100644 --- a/glibc.changes +++ b/glibc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 28 14:53:35 UTC 2011 - rguenther@novell.com + +- Fix ENOSYS detection for mkdirat. [bso#12397] + ------------------------------------------------------------------- Thu Dec 9 12:33:35 UTC 2010 - rguenther@novell.com diff --git a/glibc.spec b/glibc.spec index 3f17936..9436496 100644 --- a/glibc.spec +++ b/glibc.spec @@ -142,6 +142,7 @@ Patch503: ARM_glibc-2.10.1-local-no-hwcap.diff # http://sources.redhat.com/bugzilla/show_bug.cgi?id=11155 Patch600: glibc-sparc64-fxstat.diff Patch601: glibc-2.11.3-bnc658509.diff +Patch602: glibc-2.11.3-bso12397.diff %description The GNU C Library provides the most important standard libraries used @@ -364,6 +365,7 @@ rm nscd/s-stamp %endif %patch600 -p1 %patch601 +%patch602 # # Inconsistency detected by ld.so: dl-close.c: 719: _dl_close: Assertion `map->l_init_called' failed! #