git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffc03ad
)
r22320: Be more careful and check for the euid instead of the uid.
author
Lars Müller
<lmuelle@samba.org>
Tue, 17 Apr 2007 18:35:10 +0000
(18:35 +0000)
committer
Gerald (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
patch
|
blob
|
history
diff --git
a/source3/lib/fault.c
b/source3/lib/fault.c
index 26b48a80cd05401e8ecb080f2d2c3847309ab9bf..d429c197488c9f6d6493f4f69db3978cde161ff7 100644
(file)
--- 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 (get
e
uid() != 0) {
become_root();
}