mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
r22071: Make the error message for incorrect use of '-c' show the parameter as used.
This means that smbpasswd -c user (which in htpasswd creates a new file)
and smbpasswd -c /not/my/smb.conf should give errors an admin will
think to chase down.
Andrew Bartlett
(This used to be commit 721375e14c
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
06ec19e2fb
commit
23d3a1956b
@ -190,7 +190,7 @@ static int process_options(int argc, char **argv, int local_flags)
|
|||||||
|
|
||||||
if (!lp_load(configfile,True,False,False,True)) {
|
if (!lp_load(configfile,True,False,False,True)) {
|
||||||
fprintf(stderr, "Can't load %s - run testparm to debug it\n",
|
fprintf(stderr, "Can't load %s - run testparm to debug it\n",
|
||||||
dyn_CONFIGFILE);
|
configfile);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user