Respect the -N flag when changing directory attributes in setdirmode).

PR:		29671
Submitted by:	Sascha Blank <sblank@addcom.de>
This commit is contained in:
dd 2001-08-20 02:15:22 +00:00
parent e7dffc200c
commit 0a5c911ab1

View File

@ -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;
}
}