From owner-freebsd-questions Sun Jul 7 18:08:06 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA02463 for questions-outgoing; Sun, 7 Jul 1996 18:08:06 -0700 (PDT) Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id SAA02387 for ; Sun, 7 Jul 1996 18:08:02 -0700 (PDT) Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net id ac16107; 8 Jul 96 2:07 +0100 Received: from jraynard.demon.co.uk ([158.152.42.77]) by relay-3.mail.demon.net id aa22560; 7 Jul 96 22:22 +0100 Received: (from fqueries@localhost) by jraynard.demon.co.uk (8.6.12/8.6.12) id VAA14451; Sun, 7 Jul 1996 21:05:47 GMT Date: Sun, 7 Jul 1996 21:05:47 GMT Message-Id: <199607072105.VAA14451@jraynard.demon.co.uk> From: James Raynard To: zach@blizzard.gaffaneys.com CC: freebsd-questions@freebsd.org In-reply-to: <8791cwbun4.fsf@freebsd.gaffaneys.com> (message from Zach Heilig on 06 Jul 1996 22:38:07 -0500) Subject: Re: What's up with ownership? Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > It seems to me that, even though it might be a bit more complex, files > should not be created with a gid that you do not belong to by default. A lot of BSD people would disagree with that statement :-) > That by itself isn't such a big deal, but some programs (like mv(1)) > try to preserve the file's gid, and fail. I agree that mv(1) should handle this more intelligently. > Maybe mv(1) should have that particular message silenced, since it > mostly superfluous anyway. cp(1) with the -p option doesn't print a > message if it can't preserve uid and gid in the destination, and the > man page for mv(1) says that it uses rm(1) and cp(1) to move files > across file-systems. To be pedantic, the man page only says it has the same effect as using rm(1) and cp(1). But yes, this behaviour is inconsistent IMHO and I've submitted a patch to take out the warning. > I just tested this, and mv(1) only complains > when it is moving files, not directories, wonder why? If you look at /usr/src/bin/mv/mv.c, you'll notice that it uses different algorithms for moving files and directories across devices. Finally, this message was brought to you by the left bracket, the right bracket and the number 1. :-) -- James Raynard, Edinburgh, Scotland james@jraynard.demon.co.uk http://www.freebsd.org/~jraynard/