diff -ur a/src/kash/shfile.h b/src/kash/shfile.h --- a/src/kash/shfile.h 2023-11-01 02:51:07.351017278 +0000 +++ b/src/kash/shfile.h 2023-11-01 02:51:24.339486663 +0000 @@ -78,7 +78,6 @@ # define S_IXOTH 0000001 # define S_ISUID 0004000 # define S_ISGID 0002000 -# define ALLPERMS 0000777 # define F_DUPFD 0 # define F_GETFD 1 diff -ur a/src/kmk/kmkbuiltin/solfakes.h b/src/kmk/kmkbuiltin/solfakes.h --- a/src/kmk/kmkbuiltin/solfakes.h 2023-11-01 02:51:07.359017498 +0000 +++ b/src/kmk/kmkbuiltin/solfakes.h 2023-11-01 02:51:29.631632963 +0000 @@ -34,7 +34,6 @@ #endif #define _PATH_DEVNULL "/dev/null" -#define ALLPERMS 0000777 #define lutimes(path, tvs) utimes(path, tvs) #define lchmod sol_lchmod #define MAX(a,b) ((a) >= (b) ? (a) : (b)) diff -ur a/src/lib/nt/ntstat.h b/src/lib/nt/ntstat.h --- a/src/lib/nt/ntstat.h 2023-11-01 02:51:07.347017167 +0000 +++ b/src/lib/nt/ntstat.h 2023-11-01 02:51:35.055782967 +0000 @@ -138,7 +138,6 @@ #define S_IXOTH 0000001 #define S_ISUID 0004000 #define S_ISGID 0002000 -#define ALLPERMS 0000777 #endif diff -ur a/src/kmk/kmkbuiltin.h b/src/kmk/kmkbuiltin.h --- a/src/kmk/kmkbuiltin.h 2023-11-01 02:53:53.623629217 +0000 +++ b/src/kmk/kmkbuiltin.h 2023-11-01 02:55:04.813614454 +0000 @@ -180,5 +180,7 @@ extern void kmk_builtin_print_stats(FILE *pOutput, const char *pszPrefix); #endif +#define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */ + #endif