Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 1998 18:50:34 -0800 (PST)
From:      rantapaa@uswest.net
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   bin/5733: cp -r cannot copy un-writable directories
Message-ID:  <199802130250.SAA03187@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802130250.SAA03187>