Date: Sat, 17 Mar 2001 09:00:02 -0800 (PST) From: Peter Pentchev <roam@orbitel.bg> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/25879: cp showing errors he shouldn't show. Message-ID: <200103171700.f2HH02329238@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/25879; it has been noted by GNATS. From: Peter Pentchev <roam@orbitel.bg> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103171700.f2HH02329238>