On Fri, Nov 09, 2007 at 09:35:05AM +0930, Paul Wise wrote:
> postinst should use dpkg-statoverride instead of chown
Really?  I thought this was an administrator's tool, and the postinst
should do something like

getent "$u" >/dev/null ||
  adduser --system --group --home /var/... --shell /usr/sbin/nologin \
  --disabled-{login,password} "$u"
dpkg-statoverride --list "$f" >/dev/null ||
  chown "$u:$u" "$f"

If the statoverride datafile gets filled with all sorts of
maintainer's default package data then it instead requires some
heureustic to try to determine whether the admin did chmod to a
different user/group.

Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to