summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/fault.c b/source3/lib/fault.c
index 26b48a80cd..d429c19748 100644
--- a/source3/lib/fault.c
+++ b/source3/lib/fault.c
@@ -164,7 +164,7 @@ void dump_core_setup(const char *progname)
/* If we're running as non root we might not be able to dump the core
* file to the corepath. There must not be an unbecome_root() before
* we call abort(). */
- if (getuid() != 0) {
+ if (geteuid() != 0) {
become_root();
}