diff options
author | Jim Meyering <jim@meyering.net> | 1998-11-30 02:56:05 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-11-30 02:56:05 +0000 |
commit | 4dbf57ed78177907470613e0861e825293935b33 (patch) | |
tree | 923e052e76347266f73598b25d881ca241403591 | |
parent | 438a33770b574223a9fae683e106e916b5176649 (diff) | |
download | coreutils-4dbf57ed78177907470613e0861e825293935b33.tar.xz |
(do_move): Don't arrange to remove DEST in the copied-into-self case.
-rw-r--r-- | src/mv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -195,7 +195,7 @@ do_move (const char *source, const char *dest, const struct cp_options *x) copied-into-self directory, DEST (`b/b' in the example), and failing. */ - dir_to_remove = dest; + dir_to_remove = NULL; error (0, 0, _("cannot move `%s' to a subdirectory of itself, `%s'"), source, dest); |