From fdfe5301fa8293b21a1bc3e73863ce99ac42d5f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20M=C3=BCller?= Date: Tue, 17 Apr 2007 18:35:10 +0000 Subject: [PATCH] r22320: Be more careful and check for the euid instead of the uid. Thx for the hint James! (This used to be commit 72be9766a9b3a860717222a86d636c1dbbf61b12) --- source3/lib/fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/fault.c b/source3/lib/fault.c index 26b48a80cd0..d429c197488 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(); } -- 2.34.1