Ticket #97 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

Preserve file permissions during package upgrade

Reported by: pjf Assigned to: pjf
Priority: normal Milestone: 3.0
Component: Happy admin Version: 0.2rc1
Severity: major Keywords:
Cc:

Description

That's needed eg. not to change services started at boot (/etc/rc.d).

Change History

09/04/06 20:32:24 changed by pjf

  • status changed from new to closed.
  • resolution set to fixed.

09/30/06 16:14:46 changed by xmxwx

As of r1030, this issue is solved by introducing new tar option:

# tar --help|grep -A 1 keep-perm
      --keep-permissions     don't modify permissions of existing files when
                             extracting

which stat()s the existing file before extracting a regular file. Permissions are preserved iff the file to replace was regular as well. installpkg/updatepkg no longer '--overwrite's files (O_CREATE|O_TRUNC). It seems not to break anything, but should probably be taken under consideration when implementing anything using hardlinks.

12/29/06 19:12:44 changed by xmxwx

  • status changed from closed to reopened.
  • resolution deleted.
  • milestone changed from 2.0 to 2.1.

The problem is not fixed. File permissions are preserved, but not only during upgradepkg but also installpkg, what is definitely wrong (see my comment on #127).

12/29/06 19:32:35 changed by xmxwx

  • status changed from reopened to closed.
  • resolution set to fixed.

fixed in r1177

File permissions are now preserved only during upgradepkg.

03/15/08 15:49:29 changed by pjf

  • milestone changed from 2.1rc1 to 3.0.

Milestone 2.1rc1 deleted