Commit 16f5ec0c authored by Mike Hibler's avatar Mike Hibler
Browse files

Handle an O_DIRECT failure the same way for both imageunzip and frisbee.

parent 296dd003
......@@ -1051,7 +1051,6 @@ ImageUnzipInit(char *filename, int _slice, int _debug, int _fill,
open_again:
if ((outfd = open(filename, flags, 0666)) < 0) {
perror("opening output file");
if (_directio && errno == EINVAL) {
/*
* XXX possibly directio is not supported,
......@@ -1064,7 +1063,7 @@ ImageUnzipInit(char *filename, int _slice, int _debug, int _fill,
"trying again without ...\n");
goto open_again;
}
fprintf(stderr, "Try again without -f\n");
perror("opening output file");
exit(1);
}
slice = _slice;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment