From: Glenn L McGrath Date: Wed, 25 Oct 2000 03:31:15 +0000 (-0000) Subject: Fix for bug #1068 from Kent Robotti X-Git-Tag: 0_48~151 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b60208dd8fe3328a5db8be1dc958e62c9898a73b;p=oweals%2Fbusybox.git Fix for bug #1068 from Kent Robotti Call perror and exit instead of fatalError --- diff --git a/coreutils/dd.c b/coreutils/dd.c index 01441c314..1002c0771 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); diff --git a/dd.c b/dd.c index 01441c314..1002c0771 100644 --- a/dd.c +++ b/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);