X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3903928ca0885614d01e6d5a7561a0e999bbadf3..b0d791bb3525ce8d2f3f5af9a1606a0049c6bf7c:/rsync.h diff --git a/rsync.h b/rsync.h index 8592984b..317c545f 100644 --- a/rsync.h +++ b/rsync.h @@ -497,6 +497,16 @@ extern int errno; #define S_IWUSR 0200 #endif +#ifndef ACCESSPERMS +#define ACCESSPERMS 0777 +#endif + +#ifndef S_ISVTX +#define S_ISVTX 0 +#endif + +#define CHMOD_BITS (S_ISUID | S_ISGID | S_ISVTX | ACCESSPERMS) + #ifndef _S_IFMT #define _S_IFMT 0170000 #endif @@ -560,9 +570,6 @@ extern int errno; #define IS_DEVICE(mode) (S_ISCHR(mode) || S_ISBLK(mode) || S_ISSOCK(mode) || S_ISFIFO(mode)) -#ifndef ACCESSPERMS -#define ACCESSPERMS 0777 -#endif /* Initial mask on permissions given to temporary files. Mask off setuid bits and group access because of potential race-condition security holes, and mask other access because mode 707 is bizarre */