[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-patch] in 2.7.1, empty directories are not removed
From: |
Thomas Moschny |
Subject: |
[bug-patch] in 2.7.1, empty directories are not removed |
Date: |
Sat, 9 Mar 2013 21:13:31 +0100 |
Test:
mkdir dir
echo -n foobar > dir/file
cat <<EOF >apatch
--- dir/file
+++ /dev/null
@@ -1 +0,0 @@
-foobar
\ No newline at end of file
EOF
patch -p0 < apatch
ls -al dir # should fail
In 2.6.1, this removed file 'file' and then dir 'dir'. In 2.7.1, it
only removes 'file' and 'dir' is kept.
The man page reads: "When patch removes a file, it also attempts to
remove any empty ancestor directories."
- [bug-patch] in 2.7.1, empty directories are not removed,
Thomas Moschny <=