mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
dd: remove unnecessary #if HAVE_FTRUNCATE
* src/dd.c (main): Remove unnecessary cpp directives. Gnulib guarantees that ftruncate is usable.
This commit is contained in:
1 parent
eae535e1a3
commit
365fb90eaa
1 file changed
-2
@@ -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 ();
|
||||
|
||||
Reference in new issue
Block a user