1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r22320: Be more careful and check for the euid instead of the uid.

Thx for the hint James!
This commit is contained in:
Lars Müller 2007-04-17 18:35:10 +00:00 committed by Gerald (Jerry) Carter
parent 0814a3acbe
commit 72be9766a9

View 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();
}