From f318a44ec79da33a8972da9822c9ac3e4b39acff Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 17 Jan 2014 15:23:54 +0100 Subject: replace: Add uid_wrapper_enabled(). Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- lib/replace/cwrap.c | 31 +++++++++++++++++++++++++++++++ lib/replace/replace.h | 2 ++ lib/replace/wscript | 1 + 3 files changed, 34 insertions(+) create mode 100644 lib/replace/cwrap.c diff --git a/lib/replace/cwrap.c b/lib/replace/cwrap.c new file mode 100644 index 0000000000..2935b5061f --- /dev/null +++ b/lib/replace/cwrap.c @@ -0,0 +1,31 @@ +/* + * Unix SMB/CIFS implementation. + * + * Replaceable functions by cwrap + * + * Copyright (c) 2014 Andreas Schneider + * + * ** NOTE! The following LGPL license applies to the replace + * ** library. This does NOT imply that all of Samba is released + * ** under the LGPL + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ + +#include "replace.h" + +bool uid_wrapper_enabled(void) +{ + return false; +} diff --git a/lib/replace/replace.h b/lib/replace/replace.h index c0b799763a..08a70c97a5 100644 --- a/lib/replace/replace.h +++ b/lib/replace/replace.h @@ -899,4 +899,6 @@ int usleep(useconds_t); void rep_setproctitle(const char *fmt, ...) PRINTF_ATTRIBUTE(1, 2); #endif +bool uid_wrapper_enabled(void); + #endif /* _LIBREPLACE_REPLACE_H */ diff --git a/lib/replace/wscript b/lib/replace/wscript index cabf91fd5a..6a8ba1d270 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -623,6 +623,7 @@ def build(bld): ) REPLACE_SOURCE = REPLACE_HOSTCC_SOURCE + REPLACE_SOURCE += ' cwrap.c' if not bld.CONFIG_SET('HAVE_CRYPT'): REPLACE_SOURCE += ' crypt.c' if not bld.CONFIG_SET('HAVE_DLOPEN'): REPLACE_SOURCE += ' dlfcn.c' -- cgit