]> Dogcows Code - chaz/tar/commit
* configure.ac: tar: close some race conditions when extracting
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Sep 2010 20:33:21 +0000 (13:33 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Sep 2010 20:34:25 +0000 (13:34 -0700)
commit59146768ef4a2c045239628b7179ea477563d63f
treee1a18bb7d3da48ece303d3ce0d54241ad43e4e1a
parent0fb3020da0b2c3c6a15b3785f3900cbcf444c2ff
* configure.ac: tar: close some race conditions when extracting

* configure.ac: Check for fchmod and fchown.  Don't check for utimes.
* src/extract.c (fdchmod, fdchown, fdstat): New functions.
(set_mode, set_stat): New arg FD.  All callers changed.
This avoids some race conditions between closing a regular file
and setting its metadata, and it's a bit faster.
configure.ac
src/extract.c
This page took 0.026027 seconds and 4 git commands to generate.