From owner-cvs-bin Sat Oct 7 03:43:14 1995 Return-Path: owner-cvs-bin Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id DAA24790 for cvs-bin-outgoing; Sat, 7 Oct 1995 03:43:14 -0700 Received: (from bde@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id DAA24755 ; Sat, 7 Oct 1995 03:42:52 -0700 Date: Sat, 7 Oct 1995 03:42:52 -0700 From: Bruce Evans Message-Id: <199510071042.DAA24755@freefall.freebsd.org> To: cvs-bin, CVS-commiters Subject: cvs commit: src/bin/mv mv.c Sender: owner-cvs-bin@FreeBSD.org Precedence: bulk bde 95/10/07 03:42:51 Modified: bin/mv mv.c Log: Handle trailing slashes in source filenames correctly. E.g., rewrite `mv foo/ ../..' to `mv foo/ ../../foo/', not to `mv foo/ ../../'. The latter caused a panic. Before the trailing slash changes in the kernel, the trailing slashes caused the rename() for this mv to fail earlier, so there was no panic in 2.0. Fixes part of PR 760.