git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eb1023
)
s3-utils Set dyn_CONFIGFILE from -c on smbpasswd command line
author
Andrew Bartlett
<abartlet@samba.org>
Sun, 8 May 2011 04:56:47 +0000
(06:56 +0200)
committer
Andrew Bartlett
<abartlet@samba.org>
Sun, 8 May 2011 08:56:27 +0000
(10:56 +0200)
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
source3/utils/smbpasswd.c
patch
|
blob
|
history
diff --git
a/source3/utils/smbpasswd.c
b/source3/utils/smbpasswd.c
index 8c780498b5b393bb3ef7cac13942c1cb4f200054..eeab4ef7de098a651cade43b9163194e141cdb4f 100644
(file)
--- 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;