diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2000-10-25 03:31:15 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2000-10-25 03:31:15 +0000 |
commit | b60208dd8fe3328a5db8be1dc958e62c9898a73b (patch) | |
tree | 00942374f2b528ed316af0671f62962fdc0fc0dd | |
parent | 130005cd89514ba6b8a4b29569279c3da44739c4 (diff) | |
download | busybox-w32-b60208dd8fe3328a5db8be1dc958e62c9898a73b.tar.gz busybox-w32-b60208dd8fe3328a5db8be1dc958e62c9898a73b.tar.bz2 busybox-w32-b60208dd8fe3328a5db8be1dc958e62c9898a73b.zip |
Fix for bug #1068 from Kent Robotti
Call perror and exit instead of fatalError
-rw-r--r-- | coreutils/dd.c | 6 | ||||
-rw-r--r-- | dd.c | 6 |
2 files changed, 8 insertions, 4 deletions
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) | |||
116 | * here anyways... */ | 116 | * here anyways... */ |
117 | 117 | ||
118 | /* free(buf); */ | 118 | /* free(buf); */ |
119 | fatalError( inFile); | 119 | perror(inFile); |
120 | exit(FALSE); | ||
120 | } | 121 | } |
121 | 122 | ||
122 | if (outFile == NULL) | 123 | if (outFile == NULL) |
@@ -131,7 +132,8 @@ extern int dd_main(int argc, char **argv) | |||
131 | 132 | ||
132 | /* close(inFd); | 133 | /* close(inFd); |
133 | free(buf); */ | 134 | free(buf); */ |
134 | fatalError( outFile); | 135 | perror(outFile); |
136 | exit(FALSE); | ||
135 | } | 137 | } |
136 | 138 | ||
137 | lseek(inFd, (off_t) (skipBlocks * blockSize), SEEK_SET); | 139 | lseek(inFd, (off_t) (skipBlocks * blockSize), SEEK_SET); |
@@ -116,7 +116,8 @@ extern int dd_main(int argc, char **argv) | |||
116 | * here anyways... */ | 116 | * here anyways... */ |
117 | 117 | ||
118 | /* free(buf); */ | 118 | /* free(buf); */ |
119 | fatalError( inFile); | 119 | perror(inFile); |
120 | exit(FALSE); | ||
120 | } | 121 | } |
121 | 122 | ||
122 | if (outFile == NULL) | 123 | if (outFile == NULL) |
@@ -131,7 +132,8 @@ extern int dd_main(int argc, char **argv) | |||
131 | 132 | ||
132 | /* close(inFd); | 133 | /* close(inFd); |
133 | free(buf); */ | 134 | free(buf); */ |
134 | fatalError( outFile); | 135 | perror(outFile); |
136 | exit(FALSE); | ||
135 | } | 137 | } |
136 | 138 | ||
137 | lseek(inFd, (off_t) (skipBlocks * blockSize), SEEK_SET); | 139 | lseek(inFd, (off_t) (skipBlocks * blockSize), SEEK_SET); |