r22320: Be more careful and check for the euid instead of the uid.
authorLars Müller <lmuelle@samba.org>
Tue, 17 Apr 2007 18:35:10 +0000 (18:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:19:26 +0000 (12:19 -0500)
Thx for the hint James!
(This used to be commit 72be9766a9b3a860717222a86d636c1dbbf61b12)

source3/lib/fault.c

index 26b48a80cd05401e8ecb080f2d2c3847309ab9bf..d429c197488c9f6d6493f4f69db3978cde161ff7 100644 (file)
@@ -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();
        }