]> git.ipfire.org Git - thirdparty/coreutils.git/commit
mv: replace empty directories in cross file system move
authorKen Booth <ken@booths.org.uk>
Tue, 2 Jul 2013 00:06:32 +0000 (01:06 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 25 Jul 2013 15:45:02 +0000 (16:45 +0100)
commit2bdb74ec1a453f6c6084d042e573de436ec205f3
tree08f8c9fdc929321f414b8e1355643e13a78271ea
parent68e5e8886170a3c2af88f830f2ac36100a9a610b
mv: replace empty directories in cross file system move

src/copy.c (copy_internal): Use rmdir() rather than unlink()
when the source is a directory, so that empty directories
are replaced in the destination as per POSIX.
* tests/mv/part-rename.sh: Augment with various combinations.
* NEWS: Mention the bug fix.
Fixes http://bugs.gnu.org/14763
NEWS
src/copy.c
tests/mv/part-rename.sh