OSDN Git Service

Teach cpio to set uid/gid and timestamp. (Timestamp has year 2100 problem.)
authorRob Landley <rob@landley.net>
Tue, 29 Apr 2014 11:03:17 +0000 (06:03 -0500)
committerRob Landley <rob@landley.net>
Tue, 29 Apr 2014 11:03:17 +0000 (06:03 -0500)
commitc54fdc92310566ccff7a96ad415b9959f5087c93
tree6af68269d1290e44dc7c4c749bd31e192d7ed386
parent7bcaf03f1506d338cde2f6d1b953d6ba6e5a7ea7
Teach cpio to set uid/gid and timestamp. (Timestamp has year 2100 problem.)

Note that directory timestamps are still sometimes wrong because creating
things in a directory can update the timestamp. Also, cp -r has logic to
ensure we can write to a directory that doesn't have write permission,
cpio does not. This is fixable, but not what existing cpio does.
toys/posix/cpio.c