diff options
author | Jim Meyering <jim@meyering.net> | 2000-01-30 12:01:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-01-30 12:01:39 +0000 |
commit | 8775803a9d839b0fd3b7116c8acb178c416044b0 (patch) | |
tree | 95e7126a1cf3e4aeb499805fc2121d4285b42623 /src | |
parent | 8c6fe7ba065e0777cad8aba4375bc6d48c28c104 (diff) | |
download | coreutils-8775803a9d839b0fd3b7116c8acb178c416044b0.tar.xz |
(main): Exit with nonzero status if ftruncate fails.
Diffstat (limited to 'src')
-rw-r--r-- | src/dd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1100,7 +1100,7 @@ main (int argc, char **argv) if (o / output_blocksize != seek_record) error (1, 0, _("file offset out of range")); if (ftruncate (STDOUT_FILENO, o) < 0) - error (0, errno, "%s", output_file); + error (1, errno, "%s", output_file); } #endif } |