From nobody@FreeBSD.org  Sun Jun 14 19:05:54 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id D47891065676
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Jun 2009 19:05:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id C25788FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Jun 2009 19:05:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n5EJ5sVn069116
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 14 Jun 2009 19:05:54 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n5EJ5slM069115;
	Sun, 14 Jun 2009 19:05:54 GMT
	(envelope-from nobody)
Message-Id: <200906141905.n5EJ5slM069115@www.freebsd.org>
Date: Sun, 14 Jun 2009 19:05:54 GMT
From: Rick van der Zwet <info@rickvanderzwet.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: cp(1) -pR on empty directory (with trealing /) leads to bogus warnings
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         135581
>Category:       bin
>Synopsis:       cp(1) -pR on empty directory (with trealing /) leads to bogus warnings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gavin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 14 19:10:01 UTC 2009
>Closed-Date:    Mon Jun 15 13:07:05 UTC 2009
>Last-Modified:  Mon Jun 15 13:07:05 UTC 2009
>Originator:     Rick van der Zwet
>Release:        FreeBSD 7.2-RELEASE
>Organization:
Stichting Wireless Leiden
>Environment:
FreeBSD richard.wleiden.net 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Thu Jun  4 12:12:30 UTC 2009     root@richard.wleiden.net:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
While calling cp with flags -pR it leads to errors and warnings which could not be linked to the calling arguments
>How-To-Repeat:
# mkdir /foo
# mkdir -p /tmp/foo
# cp -pR /tmp/foo/ /foo
cp: utimes: /foo/foo: No such file or directory
cp: chown: /foo/foo: No such file or directory
cp: chmod: /foo/foo: No such file or directory
cp: chflags: /foo/foo: No such file or directory
>Fix:


>Release-Note:
>Audit-Trail:

From: Jaakko Heinonen <jh@saunalahti.fi>
To: Rick van der Zwet <info@rickvanderzwet.nl>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/135581: cp(1) -pR on empty directory (with trealing /)
	leads to bogus warnings
Date: Mon, 15 Jun 2009 15:35:37 +0300

 Hi,
 
 On 2009-06-14, Rick van der Zwet wrote:
 > # mkdir /foo
 > # mkdir -p /tmp/foo
 > # cp -pR /tmp/foo/ /foo
 > cp: utimes: /foo/foo: No such file or directory
 > cp: chown: /foo/foo: No such file or directory
 > cp: chmod: /foo/foo: No such file or directory
 > cp: chflags: /foo/foo: No such file or directory
 
 This is a duplicate of bin/133907 which has a patch. See also
 kern/134513.
 
 -- 
 Jaakko
State-Changed-From-To: open->closed 
State-Changed-By: gavin 
State-Changed-When: Mon Jun 15 13:06:37 UTC 2009 
State-Changed-Why:  
Duplicate of bin/133907 


Responsible-Changed-From-To: freebsd-bugs->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Mon Jun 15 13:06:37 UTC 2009 
Responsible-Changed-Why:  
Track 

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