diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-24 20:59:49 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-24 20:59:49 -0700 |
commit | e49355dc455fbb750504778bfd77720178842797 (patch) | |
tree | 796882627ad1de11dca89473100eaed52529ba44 /uemis-downloader.c | |
parent | 228eb6ce27ff67d719282457e6afca186071ff74 (diff) | |
download | subsurface-e49355dc455fbb750504778bfd77720178842797.tar.gz |
Uemis downloader: create the req.txt file if it went missing
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r-- | uemis-downloader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index 8b29eca3e..17f7129d1 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -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"); |