mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 20:06:56 -05:00
Fail closed on invalid .snapraidignore control files
This commit is contained in:
parent
099f3c7429
commit
13267085d1
5 changed files with 55 additions and 12 deletions
|
|
@ -25,6 +25,8 @@ STREAM* sopen_read(const char* file, int flags)
|
|||
advise_init(&s->advise[0], s->flags & STREAM_FLAGS_ADVISE_MASK);
|
||||
|
||||
int open_flags = O_RDONLY | O_BINARY | advise_flags(&s->advise[0]);
|
||||
if ((s->flags & STREAM_FLAGS_NOFOLLOW) != 0)
|
||||
open_flags |= O_NOFOLLOW;
|
||||
|
||||
pathcpy(s->handle[0].path, sizeof(s->handle[0].path), file);
|
||||
s->handle[0].f = open(file, open_flags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue