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, ... )
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 */
set( SMB__NONULL, ctrl );
/* initialize service file location */
- service_file=servicesf;
+ service_file=get_dyn_CONFIGFILE();
if (flags & PAM_SILENT) {
set( SMB__QUIET, ctrl );