| Summary: | cp showing errors he shouldn't show. | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Amir <amir> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.2-STABLE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Amir
2001-03-17 16:40:01 UTC
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 Duplicate (kind of) of bin/20646. |