summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-05-08 06:56:47 +0200
committerAndrew Bartlett <abartlet@samba.org>2011-05-08 10:56:27 +0200
commitc3bb5b04e2b6535655dc03c870e02bd5b78a7dee (patch)
tree7757d0157c5a069a0463bae240b4a7c1f1b068f3
parent3eb1023d52d68f299365f24bf7dd30c428d835e9 (diff)
downloadsamba-c3bb5b04e2b6535655dc03c870e02bd5b78a7dee.tar.gz
samba-c3bb5b04e2b6535655dc03c870e02bd5b78a7dee.tar.bz2
samba-c3bb5b04e2b6535655dc03c870e02bd5b78a7dee.zip
s3-utils Set dyn_CONFIGFILE from -c on smbpasswd command line
This is similar to the code in popt_common and allows the smb.conf to be re-loaded from this file later in the code (or for Samba4 plugins to attempt to parse the same smb.conf). Andrew Bartlett
-rw-r--r--source3/utils/smbpasswd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index 8c780498b5..eeab4ef7de 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -107,6 +107,7 @@ static int process_options(int argc, char **argv, int local_flags)
break;
case 'c':
configfile = optarg;
+ set_dyn_CONFIGFILE(optarg);
break;
case 'a':
local_flags |= LOCAL_ADD_USER;