about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-28 19:13:20 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-28 19:13:20 +0100
commitd23965cf888f38b5ae4b27f1c8f9cba6674e1780 (patch)
treed75a8d066fc2025aaf9332cb4b04223154799349
parent7c5b106dcbb10cf383ade30de14260f23a6ecfba (diff)
downloadglibc-d23965cf888f38b5ae4b27f1c8f9cba6674e1780.tar.gz
glibc-d23965cf888f38b5ae4b27f1c8f9cba6674e1780.tar.xz
glibc-d23965cf888f38b5ae4b27f1c8f9cba6674e1780.zip
Revert "hurd: Fix building io/tst-fchownat.c"
This reverts commit fc221145a734d128d8f56f40d40fd4bb70a1d151.
-rw-r--r--ChangeLog2
-rw-r--r--io/tst-fchownat.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 99e668929e..96e4549146 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -58,8 +58,6 @@
 	* libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
 	(do_test_bz20181): Rename accordingly.
 	* libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
-	* io/tst-fchownat.c [!defined _POSIX_CHOWN_RESTRICTED]: Act like when
-	_POSIX_CHOWN_RESTRICTED is defined to 0.
 	* io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
 	<sys/mount.h>.
 	* hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
diff --git a/io/tst-fchownat.c b/io/tst-fchownat.c
index 8318842249..e8adf6229f 100644
--- a/io/tst-fchownat.c
+++ b/io/tst-fchownat.c
@@ -20,7 +20,7 @@ static int dir_fd;
 static void
 prepare (void)
 {
-#if !defined _POSIX_CHOWN_RESTRICTED || _POSIX_CHOWN_RESTRICTED == 0
+#if _POSIX_CHOWN_RESTRICTED == 0
   if (pathconf (test_dir, _PC_CHOWN_RESTRICTED) != 0)
 #endif
     {