[pkg-fetchmail-maint] Bug in postinst
Loïc Minier
lool+alioth at via.ecp.fr
Mon Nov 14 18:28:47 UTC 2005
On Mon, Nov 14, 2005, Héctor García wrote:
> Doing it this way (your original patch plus 2 flags to adduser, needed
> in my opinion), fetchmail gets created if it didn't exists
> and /var/run/fetchmail only gets to change permisions and owner if it
> didn't exits (just thing of people with old conf that use another user
> to run fetchmail, but uses same dir).
Well, the chmod is never going to run for new installs, and that's bad.
I explicitely forced the creation of the directory outside of adduser
so that the permissions are forcibly set, and that is true in both of
my patches.
The fetchmail user and run directory are only used for the fetchmail
daemon, people will local hacks to run it as a different user or with
different permissions should simply live with them and fix their
system IMO.
I consider it harmful to try to support configuration schemes that were
never officially supported in the package or to invent possible ways in
which the system might have been modified below /var or /usr.
In this sense, I prefer adduser not to create the directory (as it
doesn't offer a way to force the mode reliably and often breaks /
changes interface), and the script to force the chmod + chown in all
cases.
Bye,
--
Loïc Minier <lool at dooz.org>
"What do we want? BRAINS! When do we want it? BRAINS!"
More information about the pkg-fetchmail-maint
mailing list