Uses the NOFOLLOW option in open() to ensure to do not follow symbolic links.

This commit is contained in:
Andrea Mazzoleni 2011-08-25 18:41:27 +02:00
parent 322110672e
commit b299f9d368
3 changed files with 15 additions and 4 deletions

View file

@ -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.