Subject: bug#22624: [bug-coreutils] coreutils-8.25: big success, but problem on GNU/Hurd

From: Bernhard Voelker <[email-masked]>
Date: Thu, 11 Feb 2016 09:30:31 +0100

--- hurdtest.c-ORIG     2016-02-11 09:27:57.422023914 +0100
+++ hurdtest.c  2016-02-11 09:28:29.781433313 +0100
@@ -10,7 +10,7 @@
   struct stat st;
   off_t cur_offset;
   off_t end_offset;
-  int fd = open ("/dev/zero", O_RDONLY);
+  int fd = open (file, O_RDONLY);
   printf ("file=%s\n", file);
   if (fd < 0)
     return perror ("open"), 1;
@@ -58,7 +58,7 @@
 main (int argc, char **argv)
 {
   static char dev_zero[] = "/dev/zero";
-  static char dev_null[] = "/dev/zero";
+  static char dev_null[] = "/dev/null";
   static char *dev_zero_argv[] = { dev_zero, dev_null, 0 };
   char **av = argc == 1 ? dev_zero_argv : argv + 1;
   while (*av)