From 8775803a9d839b0fd3b7116c8acb178c416044b0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 30 Jan 2000 12:01:39 +0000 Subject: [PATCH] (main): Exit with nonzero status if ftruncate fails. --- src/dd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dd.c b/src/dd.c index f2b8a63cbb..752da10f06 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 } -- 2.47.3