summaryrefslogtreecommitdiff
path: root/coreutils/dd.c
diff options
context:
space:
mode:
authorGlenn L McGrath2000-10-25 03:31:15 +0000
committerGlenn L McGrath2000-10-25 03:31:15 +0000
commitb60208dd8fe3328a5db8be1dc958e62c9898a73b (patch)
tree00942374f2b528ed316af0671f62962fdc0fc0dd /coreutils/dd.c
parent130005cd89514ba6b8a4b29569279c3da44739c4 (diff)
downloadbusybox-b60208dd8fe3328a5db8be1dc958e62c9898a73b.zip
busybox-b60208dd8fe3328a5db8be1dc958e62c9898a73b.tar.gz
Fix for bug #1068 from Kent Robotti
Call perror and exit instead of fatalError
Diffstat (limited to 'coreutils/dd.c')
-rw-r--r--coreutils/dd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 01441c3..1002c07 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -116,7 +116,8 @@ extern int dd_main(int argc, char **argv)
* here anyways... */
/* free(buf); */
- fatalError( inFile);
+ perror(inFile);
+ exit(FALSE);
}
if (outFile == NULL)
@@ -131,7 +132,8 @@ extern int dd_main(int argc, char **argv)
/* close(inFd);
free(buf); */
- fatalError( outFile);
+ perror(outFile);
+ exit(FALSE);
}
lseek(inFd, (off_t) (skipBlocks * blockSize), SEEK_SET);