svn commit: samba r22320 - in branches: SAMBA_3_0/source/lib
SAMBA_3_0_25/source/lib
lmuelle at samba.org
lmuelle at samba.org
Tue Apr 17 18:35:10 GMT 2007
Author: lmuelle
Date: 2007-04-17 18:35:10 +0000 (Tue, 17 Apr 2007)
New Revision: 22320
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22320
Log:
Be more careful and check for the euid instead of the uid.
Thx for the hint James!
Modified:
branches/SAMBA_3_0/source/lib/fault.c
branches/SAMBA_3_0_25/source/lib/fault.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/fault.c
===================================================================
--- branches/SAMBA_3_0/source/lib/fault.c 2007-04-17 17:24:02 UTC (rev 22319)
+++ branches/SAMBA_3_0/source/lib/fault.c 2007-04-17 18:35:10 UTC (rev 22320)
@@ -164,7 +164,7 @@
/* 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();
}
Modified: branches/SAMBA_3_0_25/source/lib/fault.c
===================================================================
--- branches/SAMBA_3_0_25/source/lib/fault.c 2007-04-17 17:24:02 UTC (rev 22319)
+++ branches/SAMBA_3_0_25/source/lib/fault.c 2007-04-17 18:35:10 UTC (rev 22320)
@@ -164,7 +164,7 @@
/* 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();
}
More information about the samba-cvs
mailing list