From: Lars Müller Date: Tue, 17 Apr 2007 18:35:10 +0000 (+0000) Subject: r22320: Be more careful and check for the euid instead of the uid. X-Git-Url: http://git.samba.org/samba.git/?a=commitdiff_plain;h=fdfe5301fa8293b21a1bc3e73863ce99ac42d5f8;p=jra%2Fsamba%2F.git r22320: Be more careful and check for the euid instead of the uid. Thx for the hint James! (This used to be commit 72be9766a9b3a860717222a86d636c1dbbf61b12) --- 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(); }