From owner-freebsd-bugs Sat Mar 17 9: 0: 9 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 861E037B718 for ; Sat, 17 Mar 2001 09:00:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2HH02329238; Sat, 17 Mar 2001 09:00:02 -0800 (PST) (envelope-from gnats) Date: Sat, 17 Mar 2001 09:00:02 -0800 (PST) Message-Id: <200103171700.f2HH02329238@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: bin/25879: cp showing errors he shouldn't show. Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/25879; it has been noted by GNATS. From: Peter Pentchev To: amir@boom.org.il Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/25879: cp showing errors he shouldn't show. Date: Sat, 17 Mar 2001 18:53:25 +0200 On Sat, Mar 17, 2001 at 06:34:21PM +0200, Amir wrote: > > >Number: 25879 > >Category: bin > >Synopsis: cp showing errors he shouldn't show. > >Originator: Amir > >Release: FreeBSD 4.2-STABLE i386 > >Organization: > APF > >Environment: > > I'm using 4.2-stable from Mon Feb 26 07:05:56 IST 2001 > > >Description: > > /bin/cp showing error he shouldn't show when copying with -p flag > > >How-To-Repeat: > > # ls -lo /usr/bin/login > -r-sr-xr-x 1 root wheel schg 20436 Feb 25 19:06 /usr/bin/login > # cp -p /usr/bin/login /tmp/login > cp: /tmp/login: Operation not permitted > # ls -lo /tmp/login > -r-sr-xr-x 1 root wheel schg 20436 Feb 25 19:06 /tmp/login > # The 'operation not permitted' was a result of cp trying to set the modification time of the file *after* setting the schg flag. I submitted a PR about this quite a while ago, but a consensus was not reached on how to fix it. If you're interested, talk to David Malone (dwmalone@FreeBSD.org) about PR bin/20646, or examine the bin/20646 audit trail at: http://www.FreeBSD.org/cgi/query-pr.cgi?pr=20646 G'luck, Peter -- This sentence was in the past tense. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message