Project

General

Profile

Actions

Bug #2987

closed

cpdup should retry rmdir after chflags

Added by asomers almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Userland
Target version:
-
Start date:
03/24/2017
Due date:
% Done:

0%

Estimated time:

Description

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) patch-retry-rmdir-after-chflags asomers, 03/24/2017 03:00 PM
Actions #2

Updated by swildner over 6 years ago

  • Status changed from New to Closed

Pushed, thanks!

Actions

Also available in: Atom PDF