[DragonFlyBSD - Bug #2987] (Closed) cpdup should retry rmdir after chflags

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Sat Oct 14 12:07:54 PDT 2017


Issue #2987 has been updated by swildner.

Status changed from New to Closed

Pushed, thanks!


----------------------------------------
Bug #2987: cpdup should retry rmdir after chflags
http://bugs.dragonflybsd.org/issues/2987#change-13267

* Author: asomers
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: Userland
* Target version: 
----------------------------------------
If cpdup fails to remove an ordinary file, it will try clearing file flags and attempt to remove it again.  However, cpdup doesn't currently do that for directories.

Steps to reproduce:
dfly46# mkdir src dst
dfly46# mkdir dst/dir
dfly46# touch dst/file
dfly46# chflags schg dst/dir dst/file
dfly46# cpdup src dst
remove dst/dir (Yes/No) [No]? y
remove dst/file (Yes/No) [No]? y
dst/dir          rmdir failed: Operation not permitted

---Files--------------------------------
patch-retry-rmdir-after-chflags (1.83 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list