mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
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>
This commit is contained in:
parent
e66b380285
commit
fddde8b056
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63283
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -581,9 +581,9 @@ extractfile(name)
|
||||
}
|
||||
(void) chown(name, curfile.dip->di_uid, curfile.dip->di_gid);
|
||||
(void) chmod(name, mode);
|
||||
utimes(name, timep);
|
||||
(void) chflags(name, flags);
|
||||
skipfile();
|
||||
utimes(name, timep);
|
||||
return (GOOD);
|
||||
|
||||
case IFCHR:
|
||||
@ -603,9 +603,9 @@ extractfile(name)
|
||||
}
|
||||
(void) chown(name, curfile.dip->di_uid, curfile.dip->di_gid);
|
||||
(void) chmod(name, mode);
|
||||
utimes(name, timep);
|
||||
(void) chflags(name, flags);
|
||||
skipfile();
|
||||
utimes(name, timep);
|
||||
return (GOOD);
|
||||
|
||||
case IFREG:
|
||||
@ -625,10 +625,10 @@ extractfile(name)
|
||||
}
|
||||
(void) fchown(ofile, curfile.dip->di_uid, curfile.dip->di_gid);
|
||||
(void) fchmod(ofile, mode);
|
||||
(void) fchflags(ofile, flags);
|
||||
getfile(xtrfile, xtrskip);
|
||||
(void) close(ofile);
|
||||
utimes(name, timep);
|
||||
(void) chflags(name, flags);
|
||||
return (GOOD);
|
||||
}
|
||||
/* NOTREACHED */
|
||||
|
Loading…
Reference in New Issue
Block a user