git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06ec19e
)
r22071: Make the error message for incorrect use of '-c' show the parameter as used.
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 4 Apr 2007 06:03:54 +0000
(06:03 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:19:09 +0000
(12:19 -0500)
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
721375e14cfcef88061c9e4d4a1f3ca2f33fa9aa
)
source3/utils/smbpasswd.c
patch
|
blob
|
history
diff --git
a/source3/utils/smbpasswd.c
b/source3/utils/smbpasswd.c
index e7bd0e5faeeecf3e15537492f09bbd8588860f49..92179567812789ae1d60ee3eaf4afc63807a66b6 100644
(file)
--- a/
source3/utils/smbpasswd.c
+++ b/
source3/utils/smbpasswd.c
@@
-190,7
+190,7
@@
static int process_options(int argc, char **argv, int local_flags)
if (!lp_load(configfile,True,False,False,True)) {
fprintf(stderr, "Can't load %s - run testparm to debug it\n",
-
dyn_CONFIGFILE
);
+
configfile
);
exit(1);
}