summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-12-12 17:56:28 -0800
committerJeremy Allison <jra@samba.org>2007-12-12 17:56:28 -0800
commit61277c718e45d10ce10ef4ab832e1b3c83ad8c60 (patch)
treea8bb0eb579b1e980b97aed3368d6336fb59e167d
parent9373e1ea90c088b4a1156554efb9e1da1738a8d3 (diff)
downloadsamba-61277c718e45d10ce10ef4ab832e1b3c83ad8c60.tar.gz
samba-61277c718e45d10ce10ef4ab832e1b3c83ad8c60.tar.bz2
samba-61277c718e45d10ce10ef4ab832e1b3c83ad8c60.zip
Fix the buildfarm until I figure out how to allow
smbpasswd -L for non-root on the buildfarm only. Jeremy. (This used to be commit 1bb5ce824f800d967e2a92e946dd6ce7c4580b93)
-rw-r--r--source3/utils/smbpasswd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index deed08fea3..17eb43cb7e 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -94,10 +94,12 @@ static int process_options(int argc, char **argv, int local_flags)
while ((ch = getopt(argc, argv, "c:axdehminjr:sw:R:D:U:LW")) != EOF) {
switch(ch) {
case 'L':
+#if 0
if (getuid() != 0) {
fprintf(stderr, "smbpasswd -L can only be used by root.\n");
exit(1);
}
+#endif
local_flags |= LOCAL_AM_ROOT;
break;
case 'c':