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-Tag: samba-misc-tags/initial-v3-0-unstable~680 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=72be9766a9b3a860717222a86d636c1dbbf61b12;p=thirdparty%2Fsamba.git r22320: Be more careful and check for the euid instead of the uid. Thx for the hint James! --- diff --git a/source/lib/fault.c b/source/lib/fault.c index 26b48a80cd0..d429c197488 100644 --- a/source/lib/fault.c +++ b/source/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(); }