From owner-cvs-bin Wed Dec 10 09:55:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id JAA02344 for cvs-bin-outgoing; Wed, 10 Dec 1997 09:55:28 -0800 (PST) (envelope-from owner-cvs-bin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id JAA02261; Wed, 10 Dec 1997 09:54:45 -0800 (PST) (envelope-from eivind@FreeBSD.org) From: Eivind Eklund Received: (from eivind@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id JAA10409; Wed, 10 Dec 1997 09:52:54 -0800 (PST) Date: Wed, 10 Dec 1997 09:52:54 -0800 (PST) Message-Id: <199712101752.JAA10409@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-bin@FreeBSD.ORG Subject: cvs commit: src/bin/mv mv.c Sender: owner-cvs-bin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk eivind 1997/12/10 09:52:54 PST Modified files: bin/mv mv.c Log: Merge from OpenBSD: > Error out if someone tries to mv a mount point. Old behavior was to > move all files contained in the mounted filesystem to the dest. dir > which could be quite nasty. Personally, I think rename(2) should > return EPERM or EINVAL instead of EXDEV. Obtained from: OpenBSD mv.c rev 1.6 by Todd Miller Revision Changes Path 1.17 +16 -2 src/bin/mv/mv.c