diff --git a/src/kmk/kmkbuiltin/chmod.c b/src/kmk/kmkbuiltin/chmod.c index 0061924..c5e9b03 100644 --- a/src/kmk/kmkbuiltin/chmod.c +++ b/src/kmk/kmkbuiltin/chmod.c @@ -70,6 +70,9 @@ static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94"; #include "getopt_r.h" #include "kmkbuiltin.h" +#ifndef ALLPERMS +# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */ +#endif /********************************************************************************************************************************* * Global Variables * diff --git a/src/kmk/kmkbuiltin/install.c b/src/kmk/kmkbuiltin/install.c index 00bdf73..78e278e 100644 --- a/src/kmk/kmkbuiltin/install.c +++ b/src/kmk/kmkbuiltin/install.c @@ -122,6 +122,9 @@ extern mode_t bsd_getmode(const void *bbox, mode_t omode); # define IS_SLASH(ch) ((ch) == '/') #endif +#ifndef ALLPERMS +# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */ +#endif /********************************************************************************************************************************* * Structures and Typedefs *