lib/param: Move GUEST_ACCOUNT define to a common header
authorAndrew Bartlett <abartlet@samba.org>
Fri, 10 Jan 2014 02:04:02 +0000 (15:04 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 28 Jan 2014 04:26:44 +0000 (17:26 +1300)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
lib/param/loadparm.h
source3/include/local.h

index f9624d6ca932fd3a60bc21adfff6ccff45fede30..0f0e90f0abb7e4d09b42aaaa6f4c7397541501ed 100644 (file)
@@ -203,6 +203,11 @@ enum case_handling {CASE_LOWER,CASE_UPPER};
 #define PRINT_MAX_JOBID 10000
 #endif
 
+/* the default guest account - allow override via CFLAGS */
+#ifndef GUEST_ACCOUNT
+#define GUEST_ACCOUNT "nobody"
+#endif
+
 #define LOADPARM_EXTRA_LOCALS                                          \
        bool valid;                                                     \
        int usershare;                                                  \
index a87ab8f100d7ae7cf40289c9033b44a718fd7367..c494d90eec0242eecbb007c2e10ae90f2c2a279e 100644 (file)
    NT file manager window? */
 #define FSTYPE_STRING "NTFS"
 
-/* the default guest account - normally set in the Makefile or smb.conf */
-#ifndef GUEST_ACCOUNT
-#define GUEST_ACCOUNT "nobody"
-#endif
-
 /* user to test password server with as invalid in security=server mode. */
 #ifndef INVALID_USER_PREFIX
 #define INVALID_USER_PREFIX "sambatest"