mirror of
https://github.com/sheumann/hush.git
synced 2025-01-14 12:30:40 +00:00
Fix for bug #1068 from Kent Robotti
Call perror and exit instead of fatalError
This commit is contained in:
parent
130005cd89
commit
b60208dd8f
@ -116,7 +116,8 @@ extern int dd_main(int argc, char **argv)
|
|||||||
* here anyways... */
|
* here anyways... */
|
||||||
|
|
||||||
/* free(buf); */
|
/* free(buf); */
|
||||||
fatalError( inFile);
|
perror(inFile);
|
||||||
|
exit(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (outFile == NULL)
|
if (outFile == NULL)
|
||||||
@ -131,7 +132,8 @@ extern int dd_main(int argc, char **argv)
|
|||||||
|
|
||||||
/* close(inFd);
|
/* close(inFd);
|
||||||
free(buf); */
|
free(buf); */
|
||||||
fatalError( outFile);
|
perror(outFile);
|
||||||
|
exit(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
lseek(inFd, (off_t) (skipBlocks * blockSize), SEEK_SET);
|
lseek(inFd, (off_t) (skipBlocks * blockSize), SEEK_SET);
|
||||||
|
6
dd.c
6
dd.c
@ -116,7 +116,8 @@ extern int dd_main(int argc, char **argv)
|
|||||||
* here anyways... */
|
* here anyways... */
|
||||||
|
|
||||||
/* free(buf); */
|
/* free(buf); */
|
||||||
fatalError( inFile);
|
perror(inFile);
|
||||||
|
exit(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (outFile == NULL)
|
if (outFile == NULL)
|
||||||
@ -131,7 +132,8 @@ extern int dd_main(int argc, char **argv)
|
|||||||
|
|
||||||
/* close(inFd);
|
/* close(inFd);
|
||||||
free(buf); */
|
free(buf); */
|
||||||
fatalError( outFile);
|
perror(outFile);
|
||||||
|
exit(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
lseek(inFd, (off_t) (skipBlocks * blockSize), SEEK_SET);
|
lseek(inFd, (off_t) (skipBlocks * blockSize), SEEK_SET);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user