summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-11-26 02:01:00 +0000
committerTim Potter <tpot@samba.org>2001-11-26 02:01:00 +0000
commit5c7016d5cb6195db705806c14ce31139051465c3 (patch)
tree3c12bce06361e744aedcd4741eb1b0a2acd28f71 /source3/rpcclient
parent9aa4342baef178b685cc4da1ed9ed77512cd359e (diff)
downloadsamba-5c7016d5cb6195db705806c14ce31139051465c3.tar.gz
samba-5c7016d5cb6195db705806c14ce31139051465c3.tar.bz2
samba-5c7016d5cb6195db705806c14ce31139051465c3.zip
dyn_CONFIGFILE fixups.
(This used to be commit 7d10fa208248e201946876168743025866e011fc)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/samsync.c7
1 files 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();