From 5c7016d5cb6195db705806c14ce31139051465c3 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Mon, 26 Nov 2001 02:01:00 +0000 Subject: dyn_CONFIGFILE fixups. (This used to be commit 7d10fa208248e201946876168743025866e011fc) --- source3/rpcclient/samsync.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source3/rpcclient/samsync.c b/source3/rpcclient/samsync.c index 6d75722f35..46b20b3e12 100644 --- a/source3/rpcclient/samsync.c +++ b/source3/rpcclient/samsync.c @@ -222,7 +222,6 @@ static struct cli_state *init_connection(struct cli_state *cli, int main(int argc, char **argv) { BOOL do_sam_sync = False, do_sam_repl = False; - pstring servicesf = dyn_CONFIGFILE; struct cli_state cli; NTSTATUS result; int opt; @@ -246,7 +245,7 @@ static struct cli_state *init_connection(struct cli_state *cli, while((opt = getopt(argc, argv, "s:d:SR:hiU:W:p")) != EOF) { switch (opt) { case 's': - pstrcpy(servicesf, optarg); + pstrcpy(dyn_CONFIGFILE, optarg); break; case 'd': DEBUGLEVEL = atoi(optarg); @@ -303,8 +302,8 @@ static struct cli_state *init_connection(struct cli_state *cli, if (!interactive) reopen_logs(); - if (!lp_load(servicesf, True, False, False)) { - fprintf(stderr, "Can't load %s\n", servicesf); + if (!lp_load(dyn_CONFIGFILE, True, False, False)) { + fprintf(stderr, "Can't load %s\n", dyn_CONFIGFILE); } load_interfaces(); -- cgit