diff options
author | Sami Kerola | 2014-05-25 23:17:25 +0200 |
---|---|---|
committer | Sami Kerola | 2014-07-18 19:34:14 +0200 |
commit | bd9ced628bb8621babc1d677669c14277845745d (patch) | |
tree | 215440d3bfda455c117b3e9b116ac7c6fff91446 /tests/functions.sh | |
parent | prlimit: clean up columns[] usage (diff) | |
download | kernel-qcow2-util-linux-bd9ced628bb8621babc1d677669c14277845745d.tar.gz kernel-qcow2-util-linux-bd9ced628bb8621babc1d677669c14277845745d.tar.xz kernel-qcow2-util-linux-bd9ced628bb8621babc1d677669c14277845745d.zip |
rename: allow renaming in subdirectories
Earlier the rename(1) considered path as possible string to be renamed,
could lead to an issue with none existing destination. See below for
demonstration of this issue. After this change all directory elements
are ignored when the match finding happens.
$ cd $(mktemp -d)
$ mkdir aa ab
$ touch a{a,b}/aa
$ rename -v a x */aa
rename: aa/aa: rename to xa/aa failed: No such file or directory
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/functions.sh')
0 files changed, 0 insertions, 0 deletions