diff options
author | Lars Müller <lmuelle@samba.org> | 2007-04-17 18:35:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:26 -0500 |
commit | fdfe5301fa8293b21a1bc3e73863ce99ac42d5f8 (patch) | |
tree | 67f79c93bed53fb8a42b6a2c2a88fd793dfde7fa /source3/lib | |
parent | ffc03ada718225e93a6ec85f25838ac35598c0b0 (diff) | |
download | samba-fdfe5301fa8293b21a1bc3e73863ce99ac42d5f8.tar.gz samba-fdfe5301fa8293b21a1bc3e73863ce99ac42d5f8.tar.bz2 samba-fdfe5301fa8293b21a1bc3e73863ce99ac42d5f8.zip |
r22320: Be more careful and check for the euid instead of the uid.
Thx for the hint James!
(This used to be commit 72be9766a9b3a860717222a86d636c1dbbf61b12)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/fault.c | 2 |
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(); } |