diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2000-07-16 23:22:15 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2000-07-16 23:22:15 +0000 |
commit | e16e26fada5ff2253fc0408b159f8041f2fb3b56 (patch) | |
tree | f12542270c167824e5555555f699310874c48222 /sbin/restore/dirs.c | |
parent | 5996cf5b9eed4a31cafa5c091e8a90a29ba7e953 (diff) | |
download | FreeBSD-src-e16e26fada5ff2253fc0408b159f8041f2fb3b56.zip FreeBSD-src-e16e26fada5ff2253fc0408b159f8041f2fb3b56.tar.gz |
Don't try to make files immutable (ie. chflags) before setting access times.
PR: 19973
Submitted by: Arjan de Vet <Arjan.deVet@adv.iae.nl>
Reviewed by: Matthew Jacob <mjacob@feral.com>
Diffstat (limited to 'sbin/restore/dirs.c')
-rw-r--r-- | sbin/restore/dirs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/restore/dirs.c b/sbin/restore/dirs.c index 6338c24..f30eacd 100644 --- a/sbin/restore/dirs.c +++ b/sbin/restore/dirs.c @@ -631,8 +631,8 @@ setdirmodes(flags) cp = myname(ep); (void) chown(cp, node.uid, node.gid); (void) chmod(cp, node.mode); - (void) chflags(cp, node.flags); utimes(cp, node.timep); + (void) chflags(cp, node.flags); ep->e_flags &= ~NEW; } } |