From fa0540fb091625499b90285bafa061c665e0c636 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 22 Oct 1999 18:18:31 +0000 Subject: Make mkdir -m work --- utility.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'utility.c') diff --git a/utility.c b/utility.c index a653bb325..421492dca 100644 --- a/utility.c +++ b/utility.c @@ -540,11 +540,9 @@ parse_mode( const char* s, mode_t* theMode) groups |= S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO; break; default: - if ( isdigit(c) && c >= '0' && c <= '7' && mode == 0 && groups == 0 ) { - andMode = 0; - orMode = strtol(--s, NULL, 8); - *theMode &= andMode; - *theMode |= orMode; + if ( isdigit(c) && c >= '0' && c <= '7' && + mode == 0 && groups == 0 ) { + *theMode = strtol(--s, NULL, 8); return (TRUE); } else -- cgit v1.2.3