From: Bill Joy Date: Sun, 1 Mar 1981 13:43:54 +0000 (-0800) Subject: fix bug with -i when moving directories X-Git-Tag: BSD-4_1_snap-Snapshot-Development~2003 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/5397f73f19b6f8c9a68a6aa9a0aef7d901fd2404 fix bug with -i when moving directories SCCS-vsn: bin/mv/mv.c 4.3 --- diff --git a/usr/src/bin/mv/mv.c b/usr/src/bin/mv/mv.c index f7abf15d67..cc46e9d7e4 100644 --- a/usr/src/bin/mv/mv.c +++ b/usr/src/bin/mv/mv.c @@ -1,4 +1,4 @@ -static char *sccsid = "@(#)mv.c 4.2 (Berkeley) %G%"; +static char *sccsid = "@(#)mv.c 4.3 (Berkeley) 81/02/28"; /* * mv file1 file2 */ @@ -176,13 +176,6 @@ char *source, *target; if ((s2.st_mode&S_IFMT) != S_IFDIR) { fprintf(stderr, "mv: %s exists\n", target); return(1); - } else if (iflag && !fflag) { - fprintf(stderr, "remove %s? ", target); - cc = c = getchar(); - while (c != '\n' && c != EOF) - c = getchar(); - if (cc != 'y') - return(1); } if (strlen(target) > MAXN-DIRSIZ-2) { fprintf(stderr, "mv :target name too long\n");