diff options
author | Denys Nykula <nykula@ukr.net> | 2019-06-22 14:57:59 +0300 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-06-22 09:05:53 -0500 |
commit | 3b9cfa70db019fa9b43ddba2d5620bff6c72bad6 (patch) | |
tree | 17ba946b54145c3949a8ac3b3d9c229bab15a26d /toys/posix/cksum.c | |
parent | 10534db2f6145dac85689e773d53befa4ce91c7d (diff) | |
download | toybox-3b9cfa70db019fa9b43ddba2d5620bff6c72bad6.tar.gz |
Fix mv with trailing slash in source.
Press tab, have bash complete dir name with a slash, notice musl
rename() dislikes that. Replace trailing slash in the cp loop with a
null character, if the command name is mv. Add the slash back if an
error occurs.
Diffstat (limited to 'toys/posix/cksum.c')
0 files changed, 0 insertions, 0 deletions