• Status Work in Progress
  • Percent Complete
  • Task Type Bug Report
  • Category tools → pkgutils
  • Assigned To
  • Operating System CRUX
  • Severity Low
  • Priority Very Low
  • Reported Version Development
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 1
  • Private
Attached to Project: CRUX
Opened by jue - 19.11.2008
Last edited by tb - 24.06.2021

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

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.

jue commented on 19.11.2008 14:09

That issue was already reported with ticket #122

sepen commented on 22.06.2012 10:55

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."

sepen commented on 22.06.2012 14:28

Attached updated patch


Available keyboard shortcuts


Task Details

Task Editing