From ceedf1a111598c815ffef9a0fe312689cc4bf136 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Thu, 13 Dec 2007 12:55:32 +0300 Subject: Fix pam_smbpass build (This used to be commit fbc510f1717fe82338262c18c252d18987c55b5c) --- source3/pam_smbpass/support.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source3/pam_smbpass') diff --git a/source3/pam_smbpass/support.c b/source3/pam_smbpass/support.c index 9d56bd4950..bc9481d9e9 100644 --- a/source3/pam_smbpass/support.c +++ b/source3/pam_smbpass/support.c @@ -61,10 +61,6 @@ void _cleanup(pam_handle_t *, void *, int); char *_pam_delete(register char *); - /* default configuration file location */ - - const char *servicesf = get_dyn_CONFIGFILE(); - /* syslogging function for errors and other information */ void _log_err( int err, const char *format, ... ) @@ -128,7 +124,7 @@ int set_ctrl( int flags, int argc, const char **argv ) { int i = 0; - const char *service_file = get_dyn_CONFIGFILE(); + const char *service_file = NULL; unsigned int ctrl; ctrl = SMB_DEFAULTS; /* the default selection of options */ @@ -139,7 +135,7 @@ int set_ctrl( int flags, int argc, const char **argv ) set( SMB__NONULL, ctrl ); /* initialize service file location */ - service_file=servicesf; + service_file=get_dyn_CONFIGFILE(); if (flags & PAM_SILENT) { set( SMB__QUIET, ctrl ); -- cgit