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
406a1cee7d
commit
b9595aa55f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=81940
@ -636,10 +636,12 @@ setdirmodes(flags)
|
||||
panic("cannot find directory inode %d\n", node.ino);
|
||||
} else {
|
||||
cp = myname(ep);
|
||||
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