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:
parent
0814a3acbe
commit
72be9766a9
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user