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.

30 lines
913 B

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