mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 03:47:05 -05:00
Uses the NOFOLLOW option in open() to ensure to do not follow symbolic links.
This commit is contained in:
parent
322110672e
commit
b299f9d368
3 changed files with 15 additions and 4 deletions
4
mingw.h
4
mingw.h
|
|
@ -48,6 +48,10 @@
|
|||
#define opendir windows_opendir
|
||||
#define readdir windows_readdir
|
||||
#define closedir windows_closedir
|
||||
#define O_NOFOLLOW 0
|
||||
#define S_ISLNK(mode) 0
|
||||
#define readlink(a,b,c) -1
|
||||
#define symlink(a,b) -1
|
||||
|
||||
/**
|
||||
* Generic stat information.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue