Respect the -N flag when changing directory attributes in setdirmode).
PR: 29671 Submitted by: Sascha Blank <sblank@addcom.de>
This commit is contained in:
parent
e7dffc200c
commit
0a5c911ab1
@ -636,10 +636,12 @@ setdirmodes(flags)
|
||||
panic("cannot find directory inode %d\n", node.ino);
|
||||
} else {
|
||||
cp = myname(ep);
|
||||
(void) chown(cp, node.uid, node.gid);
|
||||
(void) chmod(cp, node.mode);
|
||||
utimes(cp, node.timep);
|
||||
(void) chflags(cp, node.flags);
|
||||
if (!Nflag) {
|
||||
(void) chown(cp, node.uid, node.gid);
|
||||
(void) chmod(cp, node.mode);
|
||||
utimes(cp, node.timep);
|
||||
(void) chflags(cp, node.flags);
|
||||
}
|
||||
ep->e_flags &= ~NEW;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user