summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-01-17 15:23:54 +0100
committerStefan Metzmacher <metze@samba.org>2014-04-17 14:56:05 +0200
commitf318a44ec79da33a8972da9822c9ac3e4b39acff (patch)
treeb34fb930817f826c89e9552870e9462f7a4316b7 /lib
parentad3a4316705245891d9a66c50817a26a41ac016f (diff)
downloadsamba-f318a44ec79da33a8972da9822c9ac3e4b39acff.tar.gz
samba-f318a44ec79da33a8972da9822c9ac3e4b39acff.tar.xz
samba-f318a44ec79da33a8972da9822c9ac3e4b39acff.zip
replace: Add uid_wrapper_enabled().
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/cwrap.c31
-rw-r--r--lib/replace/replace.h2
-rw-r--r--lib/replace/wscript1
3 files changed, 34 insertions, 0 deletions
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 <asn@samba.org>
+ *
+ * ** 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 <http://www.gnu.org/licenses/>.
+ */
+
+#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'