Uemis downloader: create the req.txt file if it went missing
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
228eb6ce27
commit
e49355dc45
@ -214,7 +214,7 @@ static bool uemis_init(const char *path)
|
||||
return false;
|
||||
/* let's check if this is indeed a Uemis DC */
|
||||
reqtxt_path = build_filename(path, "req.txt");
|
||||
reqtxt_file = subsurface_open(reqtxt_path, O_RDONLY, 0666);
|
||||
reqtxt_file = subsurface_open(reqtxt_path, O_RDONLY | O_CREAT, 0666);
|
||||
if (reqtxt_file < 0) {
|
||||
#if UEMIS_DEBUG & 1
|
||||
fprintf(debugfile, ":EE req.txt can't be opened\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user