Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6f098b0
)
Call seteuid() when calling setuid().
author
Wayne Davison
<wayned@samba.org>
Sat, 17 Oct 2009 22:03:11 +0000
(15:03 -0700)
committer
Wayne Davison
<wayned@samba.org>
Sat, 17 Oct 2009 22:03:11 +0000
(15:03 -0700)
clientserver.c
patch
|
blob
|
blame
|
history
diff --git
a/clientserver.c
b/clientserver.c
index
f2751a4
..
eeaf8e1
100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-801,7
+801,7
@@
static int rsync_module(int f_in, int f_out, int i, const char *addr, const char
}
if (set_uid) {
- if (setuid(uid)) {
+ if (setuid(uid)
|| seteuid(uid)
) {
rsyserr(FLOG, errno, "setuid %ld failed", (long)uid);
io_printf(f_out, "@ERROR: setuid failed\n");
return -1;