Hello!
        There is a compile problem with fileutils 4.0.36. src/dd.c refuses to
compile due to incorrect usage of S_TYPEISSHM macro. The attached patch fixes
that problem. Please include it in the next release.

    Sincerely Your, Dan.
--- fileutils-4.0.36/src/dd.c.posix     Fri Mar 16 09:45:54 2001
+++ fileutils-4.0.36/src/dd.c   Fri Mar 16 16:15:33 2001
@@ -49,7 +49,7 @@
 #endif
 
 #ifndef S_TYPEISSHM
-# define S_TYPEISSHM(Mode) 0
+# define S_TYPEISSHM(buf) 0
 #endif
 
 #define ROUND_UP_OFFSET(X, M) ((M) - 1 - (((X) + (M) - 1) % (M)))
@@ -1173,7 +1173,7 @@
          if (ftruncate (STDOUT_FILENO, o) != 0
              && (S_ISREG (stdout_stat.st_mode)
                  || S_ISDIR (stdout_stat.st_mode)
-                 || S_TYPEISSHM (stdout_stat.st_mode)))
+                 || S_TYPEISSHM (&stdout_stat)))
            {
              char buf[LONGEST_HUMAN_READABLE + 1];
              error (1, errno, _("advancing past %s bytes in output file %s"),

Reply via email to