Revert "[s3]pidfile_create: use check is_default_dyn_CONFIGFILE() since we have it."
commit09411113d8f6b2389b3763bad24bcfdb61b0508c
authorMichael Adam <obnox@samba.org>
Fri, 3 Jul 2009 09:35:11 +0000 (3 11:35 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 3 Jul 2009 11:01:36 +0000 (3 13:01 +0200)
treee1f1a678c47eb1e1af24c06ff5a6e397c96e9cbb
parentf0d67b6e119d719c2540eadce5849d3200dea2d0
Revert "[s3]pidfile_create: use check is_default_dyn_CONFIGFILE() since we have it."

This reverts commit 1d3dcd1e420104c23769b691d0b8b7958d5c58a7.

This fixes Bug #6531 (Pid File creation.)

Usually, I would extend is_default_dyn_XYZ() so that it returns true
when dyn_XYZ has not been set yet or when its value is equal to the
compiled in default value XZY. But this would have a change in effect
in popt_common and torture.c: is_default_dyn_CONFIGFILE() is used
there to check whether the config file should be overwritten by the
contents of the environment variable SMB_CONF_PATH. Currently this
is only done when set_dyn_CONFIGFILE() had _not_ previously been called
at all, not even with the same value as the compiled in default.

Michael
(cherry picked from commit 914a14b3a9c9d922d2a5c1aa413945afa11cfd2a)

Signed-off-by: Michael Adam <obnox@samba.org>
source3/lib/pidfile.c