Apparently msvc doesn't have #warning

It's unclear how to deal with symlinks on windows as well..
This commit is contained in:
Sergey Sharybin 2014-04-23 00:25:19 +06:00
parent 421c42bc16
commit a892cf683b
1 changed files with 4 additions and 1 deletions

View File

@ -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);