Fix the buildfarm until I figure out how to allow
authorJeremy Allison <jra@samba.org>
Thu, 13 Dec 2007 01:56:28 +0000 (17:56 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 13 Dec 2007 01:56:28 +0000 (17:56 -0800)
smbpasswd -L for non-root on the buildfarm only.
Jeremy.
(This used to be commit 1bb5ce824f800d967e2a92e946dd6ce7c4580b93)

source3/utils/smbpasswd.c

index deed08fea327bb0fd0b12c5c07c4345e8c615827..17eb43cb7e282a8f0c82eeee9244b69e66eadd4e 100644 (file)
@@ -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':