diff options
author | Eric Andersen <andersen@codepoet.org> | 1999-10-22 22:18:31 +0400 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 1999-10-22 22:18:31 +0400 |
commit | fa0540fb091625499b90285bafa061c665e0c636 (patch) | |
tree | b0a130e8b224f980f1ea234c0d1d47590ebe748c /chmod_chown_chgrp.c | |
parent | 8eefd021ca7a0b14e46e6bbff2d885ca9da0ea96 (diff) |
Make mkdir -m work
Diffstat (limited to 'chmod_chown_chgrp.c')
-rw-r--r-- | chmod_chown_chgrp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chmod_chown_chgrp.c b/chmod_chown_chgrp.c index 8bda06861..a91b0a365 100644 --- a/chmod_chown_chgrp.c +++ b/chmod_chown_chgrp.c @@ -101,7 +101,7 @@ int chmod_chown_chgrp_main(int argc, char **argv) if ( whichApp == CHMOD_APP ) { /* Find the specified modes */ - mode &= S_ISVTX|S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO; + mode = ( 0 & (S_ISVTX|S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)); if ( parse_mode(*argv, &mode) == FALSE ) { fprintf(stderr, "%s: Unknown mode: %s\n", invocationName, *argv); exit( FALSE); |