From 8fbe9269c92e7a5819a241ebb6bd8f2c8890f8a6 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 10 Jan 2014 15:04:02 +1300 Subject: [PATCH] lib/param: Move GUEST_ACCOUNT define to a common header Signed-off-by: Andrew Bartlett Reviewed-by: Alexander Bokovoy --- lib/param/loadparm.h | 5 +++++ source3/include/local.h | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/param/loadparm.h b/lib/param/loadparm.h index f9624d6ca93..0f0e90f0abb 100644 --- a/lib/param/loadparm.h +++ b/lib/param/loadparm.h @@ -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; \ diff --git a/source3/include/local.h b/source3/include/local.h index a87ab8f100d..c494d90eec0 100644 --- a/source3/include/local.h +++ b/source3/include/local.h @@ -80,11 +80,6 @@ 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" -- 2.11.4.GIT