Skip to content

Commit

Permalink
Fail if the cache directory is unusable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalle19 committed Aug 5, 2024
1 parent a3f4425 commit 19cffe3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/minisatip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1911,7 +1911,9 @@ int main(int argc, char *argv[]) {
DEBUGL(log_it, "DEBUG of the module enabled: %s", loglevels[i]);
}

mkdir_recursive(opts.cache_dir);
if (mkdir_recursive(opts.cache_dir) == -1) {
FAIL("Failed to create cache directory %s", opts.cache_dir);
}
readBootID();
if ((rtsp = tcp_listen(opts.bind, opts.rtsp_port, opts.use_ipv4_only)) < 1)
FAIL("RTSP: Could not listen on port %d", opts.rtsp_port);
Expand Down

0 comments on commit 19cffe3

Please sign in to comment.