From amir@active.ath.cx  Sat Mar 17 08:36:52 2001
Return-Path: <amir@active.ath.cx>
Received: from active.ath.cx (ras8-p180.hfa.netvision.net.il [62.0.103.180])
	by hub.freebsd.org (Postfix) with ESMTP id 88F0937B71C
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Mar 2001 08:36:33 -0800 (PST)
	(envelope-from amir@active.ath.cx)
Received: (from amir@localhost)
	by active.ath.cx (8.11.2/8.11.1) id f2HGYLv14538;
	Sat, 17 Mar 2001 18:34:21 +0200 (IST)
	(envelope-from amir)
Message-Id: <200103171634.f2HGYLv14538@active.ath.cx>
Date: Sat, 17 Mar 2001 18:34:21 +0200 (IST)
From: Amir <amir@active.ath.cx>
Reply-To: amir@boom.org.il
To: FreeBSD-gnats-submit@freebsd.org
Subject: cp showing errors he shouldn't show.
X-Send-Pr-Version: 3.2

>Number:         25879
>Category:       bin
>Synopsis:       cp showing errors he shouldn't show.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 17 08:40:01 PST 2001
>Closed-Date:    Sat Mar 17 09:02:56 PST 2001
>Last-Modified:  Sat Mar 17 09:03:10 PST 2001
>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
#

>Fix:

	unknown.

>Release-Note:
>Audit-Trail:

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.
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Sat Mar 17 09:02:56 PST 2001 
State-Changed-Why:  
Duplicate (kind of) of bin/20646. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=25879 
>Unformatted:
