s3-utils Set dyn_CONFIGFILE from -c on smbpasswd command line
authorAndrew Bartlett <abartlet@samba.org>
Sun, 8 May 2011 04:56:47 +0000 (06:56 +0200)
committerAndrew 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

index 8c780498b5b393bb3ef7cac13942c1cb4f200054..eeab4ef7de098a651cade43b9163194e141cdb4f 100644 (file)
@@ -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;