From: Jim Meyering Date: Mon, 30 Nov 1998 02:56:05 +0000 (+0000) Subject: (do_move): Don't arrange to remove DEST in the copied-into-self case. X-Git-Tag: FILEUTILS-4_1-b1~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dbf57ed78177907470613e0861e825293935b33;p=thirdparty%2Fcoreutils.git (do_move): Don't arrange to remove DEST in the copied-into-self case. --- diff --git a/src/mv.c b/src/mv.c index cd03b5ab02..d9b1109663 100644 --- a/src/mv.c +++ b/src/mv.c @@ -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);