From owner-freebsd-hackers Tue Jun 20 09:26:40 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id JAA26993 for hackers-outgoing; Tue, 20 Jun 1995 09:26:40 -0700 Received: from spooky.rwwa.com (rwwa.com [198.115.177.3]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id JAA26987 for ; Tue, 20 Jun 1995 09:26:38 -0700 Received: from localhost (localhost [127.0.0.1]) by spooky.rwwa.com (8.6.11/8.6.9) with SMTP id MAA01291 for ; Tue, 20 Jun 1995 12:27:52 -0400 Message-Id: <199506201627.MAA01291@spooky.rwwa.com> X-Authentication-Warning: spooky.rwwa.com: Host localhost didn't use HELO protocol X-Mailer: exmh version 1.5.3 12/28/94 To: hackers@freebsd.org Subject: Strance mv error message Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Tue, 20 Jun 1995 12:27:52 -0400 From: Robert Withrow Sender: hackers-owner@freebsd.org Precedence: bulk The following error message seems wrong: bash$ umask 027 bash$ cat /dev/null >/tmp/foo bash$ ls -l /tmp/foo -rw-r----- 1 witr bin 0 Jun 20 12:13 /tmp/foo bash$ mv /tmp/foo ~/foo mv: /home/witr/foo: set owner/group: Operation not permitted bash$ ls -l foo -rw-r----- 1 witr witr 0 Jun 20 12:16 foo mv(1) says that a move across filesystems is like a cp -pr, and cp(1) says: -p Causes cp to preserve in the copy as many of the modification time, access time, file flags, file mode, user ID, and group ID as al- lowed by permissions. If the user ID and group ID cannot be preserved, no error message is displayed and the exit value is not altered. So, why the error message? ----------------------------------------------------------------------------- Robert Withrow, Tel: +1 617 598 4480, Fax: +1 617 598 4430 Net: witr@rwwa.COM R.W. Withrow Associates, 319 Lynnway Suite 201, Lynn MA 01901 USA