You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
361 B

  1. diff --git a/src/contrib/files.c b/src/contrib/files.c
  2. index 8aee482..12f36ca 100644
  3. --- a/src/contrib/files.c
  4. +++ b/src/contrib/files.c
  5. @@ -24,6 +24,10 @@
  6. #include <sys/stat.h>
  7. #include <unistd.h>
  8. +#ifndef O_NOFOLLOW
  9. +#define O_NOFOLLOW 0
  10. +#endif
  11. +
  12. static bool special_name(const char *name)
  13. {
  14. return strcmp(name, ".") == 0 || strcmp(name, "..") == 0;