diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-07-31 17:45:38 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-07-31 17:45:38 +0300 |
commit | 400d6b61b98c3be5eebb095019dfe6310e1ca253 (patch) | |
tree | 27c542ecd4643c27d55f31aca0ef222779a02527 /NEWS | |
parent | 15d29bd0863a819ed950f65523b6000961d1213e (diff) | |
download | cpio-400d6b61b98c3be5eebb095019dfe6310e1ca253.tar.gz cpio-400d6b61b98c3be5eebb095019dfe6310e1ca253.tar.bz2 |
Delay setting directory attributes until end of run, if they do not permit writing. Fix debian bug #458079.
* src/copyin.c (copyin_mkdir): New function.
(copyin_directory): Use copyin_mkdir to create directory.
Call set_perms only when safe, otherwise use repair_delayed_set_stat.
* src/extern.h (cpio_to_stat): New prototype.
(repair_delayed_set_stat): Change prototype.
* src/util.c (cpio_to_stat): New function.
(repair_delayed_set_stat): New function.
* tests/setstat01.at: New test case.
* tests/setstat02.at: New test case.
* tests/Makefile.am (TESTSUITE_AT): Add setstat01.at and setstat02.at
* tests/testsuite.at: Include setstat01.at and setstat02.at.
* NEWS: Update.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -7,6 +7,12 @@ Please send cpio bug reports to <bug-cpio@gnu.org>. Version 2.10.90 (Git) * Fix mt build. +* In copy-in mode, if directory attributes do not permit writing to it, +setting them is delayed until the end of run. This allows to correctly +extract files in such directories. +* In copy-in mode, permissions of a directory are restored if it +appears in the file list after files in it (find . -depth). This fixes +debian bug #458079. Version 2.10 - Sergey Poznyakoff, 2009-06-20 |