Only add the non-root escape on !developer.
authorJeremy Allison <jra@samba.org>
Thu, 13 Dec 2007 02:07:02 +0000 (18:07 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 13 Dec 2007 02:07:02 +0000 (18:07 -0800)
Jeremy.
(This used to be commit a50c2d159c754c6ff88649ed859f2b3f9c24f6a1)

source3/utils/smbpasswd.c

index 17eb43cb7e282a8f0c82eeee9244b69e66eadd4e..a60d605902ed98db617f547450b34bb4a370be9d 100644 (file)
@@ -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);