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.

40 lines
1.2 KiB

  1. diff -urN a/lib/hgfsServer/hgfsServerLinux.c b/lib/hgfsServer/hgfsServerLinux.c
  2. --- a/lib/hgfsServer/hgfsServerLinux.c
  3. +++ b/lib/hgfsServer/hgfsServerLinux.c
  4. @@ -105,11 +105,13 @@
  5. #endif
  6. /*
  7. - * ALLPERMS (mode 07777) and ACCESSPERMS (mode 0777) are not defined in the
  8. - * Solaris version of <sys/stat.h>.
  9. + * ALLPERMS (mode 07777) and ACCESSPERMS (mode 0777) are not specified in
  10. + * POSIX.
  11. */
  12. -#ifdef sun
  13. +#ifndef ACCESSPERMS
  14. # define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
  15. +#endif
  16. +#ifndef ALLPERMS
  17. # define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)
  18. #endif
  19. diff -urN a/services/plugins/dndcp/dnd/dndLinux.c b/services/plugins/dndcp/dnd/dndLinux.c
  20. --- a/services/plugins/dndcp/dnd/dndLinux.c
  21. +++ b/services/plugins/dndcp/dnd/dndLinux.c
  22. @@ -52,7 +52,7 @@
  23. #define DND_ROOTDIR_PERMS (S_IRWXU | S_IRWXG | S_IRWXO)
  24. #define DND_STAGINGDIR_PERMS (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)
  25. -#ifdef sun
  26. +#ifndef ACCESSPERMS
  27. #define ACCESSPERMS (S_IRWXU | S_IRWXG | S_IRWXO)
  28. #endif
  29. #ifdef __ANDROID__
  30. @@ -61,7 +61,6 @@
  31. */
  32. #define NO_SETMNTENT
  33. #define NO_ENDMNTENT
  34. -#define ACCESSPERMS (S_IRWXU | S_IRWXG | S_IRWXO)
  35. #endif