FS#379 - pkgutils: rejmerge ignores directory permissions
if a directory, rejected by pkgadd, has new/other permissions or user/group than the installed one, rejmerge should do an update which the current version refused to do.
How to reproduce:
1. echo >> /var/spool/cron/crontabs/root
2. chown daemon /var/spool/cron/crontabs
3. cd /usr/ports/core/dcron
4. pkgmk -u
pkgadd reports something like that:
pkgadd: rejecting var/spool/cron/crontabs/, keeping existing version
pkgadd: rejecting var/spool/cron/crontabs/root, keeping existing'version
5. run rejmerge
Note:
step 1. above is necessary because pkgadd doesn't add empty directories to /var/lib/pkg/rejected, which might be considered as bug as well.
Attached patch adds a check of directory permissions to rejmerge.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
That issue was already reported with ticket #122
This comment was added from
FS#122(Opened by Mark Rosenstand) which I closed as duplicated:"If a directory matches UPGRADE NO and the permissions are different from the installed directory, it gets rejected. However, rejmerge gladly ignore them (whereas the user is prompted for an action when file permissions change) and delete the rejected directory."
Attached updated patch