summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-12-12 18:07:02 -0800
committerJeremy Allison <jra@samba.org>2007-12-12 18:07:02 -0800
commite897e9c501001cc8f5346fc9f778a38852ddfae8 (patch)
tree6c2e7ac258894636b4d4730dab96cfb7f92c787d
parent61277c718e45d10ce10ef4ab832e1b3c83ad8c60 (diff)
downloadsamba-e897e9c501001cc8f5346fc9f778a38852ddfae8.tar.gz
samba-e897e9c501001cc8f5346fc9f778a38852ddfae8.tar.bz2
samba-e897e9c501001cc8f5346fc9f778a38852ddfae8.zip
Only add the non-root escape on !developer.
Jeremy. (This used to be commit a50c2d159c754c6ff88649ed859f2b3f9c24f6a1)
-rw-r--r--source3/utils/smbpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index 17eb43cb7e..a60d605902 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -94,7 +94,7 @@ 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 !defined(DEVELOPER)
if (getuid() != 0) {
fprintf(stderr, "smbpasswd -L can only be used by root.\n");
exit(1);