]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
dd: remove unnecessary #if HAVE_FTRUNCATE
authorJim Meyering <meyering@redhat.com>
Tue, 4 Aug 2009 18:05:45 +0000 (20:05 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 4 Aug 2009 18:06:03 +0000 (20:06 +0200)
* src/dd.c (main): Remove unnecessary cpp directives.
Gnulib guarantees that ftruncate is usable.

src/dd.c

index 0028b53e4e1b7a1c12c8408601962df7084b0970..9a9d22ae7a1af0a97d35ba3f96d46adb558f543e 100644 (file)
--- a/src/dd.c
+++ b/src/dd.c
@@ -1869,7 +1869,6 @@ main (int argc, char **argv)
              < 0))
        error (EXIT_FAILURE, errno, _("opening %s"), quote (output_file));
 
-#if HAVE_FTRUNCATE
       if (seek_records != 0 && !(conversions_mask & C_NOTRUNC))
        {
          uintmax_t size = seek_records * output_blocksize;
@@ -1902,7 +1901,6 @@ main (int argc, char **argv)
                       size, quote (output_file));
            }
        }
-#endif
     }
 
   install_signal_handlers ();