summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-01-30 12:01:39 +0000
committerJim Meyering <jim@meyering.net>2000-01-30 12:01:39 +0000
commit8775803a9d839b0fd3b7116c8acb178c416044b0 (patch)
tree95e7126a1cf3e4aeb499805fc2121d4285b42623 /src
parent8c6fe7ba065e0777cad8aba4375bc6d48c28c104 (diff)
downloadcoreutils-8775803a9d839b0fd3b7116c8acb178c416044b0.tar.xz
(main): Exit with nonzero status if ftruncate fails.
Diffstat (limited to 'src')
-rw-r--r--src/dd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dd.c b/src/dd.c
index f2b8a63cb..752da10f0 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -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
}