diff options
author | Jan Blunck <jblunck@suse.de> | 2008-01-07 12:13:42 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-01-07 12:13:42 +0100 |
commit | a54e8bb8a547c2ee9147865e2eb42eece69e8072 (patch) | |
tree | b7b423f0a2196c9591d1326c83cf38f5f2fcf668 /ChangeLog | |
parent | db58094e11adb527c31b3510d3430123a4048686 (diff) | |
download | coreutils-a54e8bb8a547c2ee9147865e2eb42eece69e8072.tar.xz |
cp --parents: don't use uninitialized memory when restoring permissions
* src/cp.c (make_dir_parents_private): Always stat each source
directory, in case its permissions are required in re_protect,
when setting permissions of a just-created destination directory.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2008-01-07 Jan Blunck <jblunck@suse.de> + + cp --parents: don't use uninitialized memory when restoring permissions + * src/cp.c (make_dir_parents_private): Always stat each source + directory, in case its permissions are required in re_protect, + when setting permissions of a just-created destination directory. + 2008-01-07 Jim Meyering <meyering@redhat.com> cp: add a test for today's bug fix. |