From owner-freebsd-bugs Thu Feb 12 19:00:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA04678 for freebsd-bugs-outgoing; Thu, 12 Feb 1998 19:00:05 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA04649; Thu, 12 Feb 1998 19:00:04 -0800 (PST) (envelope-from gnats) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA03187; Thu, 12 Feb 1998 18:50:34 -0800 (PST) (envelope-from nobody) Message-Id: <199802130250.SAA03187@hub.freebsd.org> Date: Thu, 12 Feb 1998 18:50:34 -0800 (PST) From: rantapaa@uswest.net To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: bin/5733: cp -r cannot copy un-writable directories Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5733 >Category: bin >Synopsis: cp -r cannot copy un-writable directories >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 12 19:00:03 PST 1998 >Last-Modified: >Originator: Erik Rantapaa >Organization: USWest Interact >Release: 2.2.5 >Environment: FreeBSD source1.oss.uswest.net 2.2.5-STABLE FreeBSD 2.2.5-STABLE #0: Mon Dec 8 12:54:06 CST 1997 root@amanda1.oss.uswest.net:/usr/src/sys/compile/SOURCE i386 >Description: mkdir /tmp/foo touch /tmp/foo/bar chmod a-w /tmp/foo cp -r /tmp/foo . cp: ./foo/bar: Permission denied >How-To-Repeat: see above >Fix: change the cp code to set the directory permissions after it's done recursing through the directory. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message