summaryrefslogtreecommitdiff
path: root/src/os_posix/os_priv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_posix/os_priv.c')
-rw-r--r--src/os_posix/os_priv.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/os_posix/os_priv.c b/src/os_posix/os_priv.c
new file mode 100644
index 00000000000..8ec056cbe58
--- /dev/null
+++ b/src/os_posix/os_priv.c
@@ -0,0 +1,18 @@
+/*-
+ * Copyright (c) 2008-2012 WiredTiger, Inc.
+ * All rights reserved.
+ *
+ * See the file LICENSE for redistribution information.
+ */
+
+#include "wt_internal.h"
+
+/*
+ * __wt_has_priv --
+ * Return if the process has special privileges.
+ */
+int
+__wt_has_priv(void)
+{
+ return (getuid() == 0 ? 1 : 0);
+}