Apparently msvc doesn't have #warning
It's unclear how to deal with symlinks on windows as well..
This commit is contained in:
parent
421c42bc16
commit
a892cf683b
|
@ -832,7 +832,10 @@ bool BKE_undo_save_file(const char *filename)
|
|||
/* use O_NOFOLLOW to avoid writing to a symlink - use 'O_EXCL' (CVE-2008-1103) */
|
||||
oflags |= O_NOFOLLOW;
|
||||
#else
|
||||
# warning "Symbolic links will be followed on undo save, possibly causing CVE-2008-1103"
|
||||
/* TODO(sergey): How to deal with symlinks on windows? */
|
||||
# ifndef _MSC_VER
|
||||
# warning "Symbolic links will be followed on undo save, possibly causing CVE-2008-1103"
|
||||
# endif
|
||||
#endif
|
||||
file = BLI_open(filename, oflags, 0666);
|
||||
|
||||
|
|
Loading…
Reference in New Issue