[Rpm-maint] [rpm-software-management/rpm] Could the default %clean section remove non-readable+non-empty directories? (Issue #2519)

Pavel Raiskup notifications at github.com
Mon May 22 12:32:43 UTC 2023


Could the default %clean script automatically change the mode of directories
before doing `rm -rf`?  To avoid build failures caused by unsuccessful `rm` calls:

```
$ mkdir nonremovable
$ touch nonremovable/protect-parent
$ chmod a-r nonremovable
$ rm -rf nonremovable/
rm: cannot remove 'nonremovable/': Permission denied
```

Note this problem can cause problems Mock/Copr: See also https://github.com/rpm-software-management/mock/issues/1081 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2519
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/2519 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230522/6ef3d199/attachment.html>


More information about the Rpm-maint mailing list