summaryrefslogtreecommitdiffhomepage
path: root/svr-agentfwd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-06-01 04:20:12 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-06-01 04:20:12 +0000
commit40cb39d00c8c1580c869e8bb84f83fa141d2509f (patch)
tree2f7ab3e87f9dfd99e0692fd536b5b2b678c6bba5 /svr-agentfwd.c
parent674a60748884dc55ee7091b7c23a41240e75f73c (diff)
syntactical fixups - it compiles, but channel handling code requires fixing.
--HG-- extra : convert_revision : 6f8be81d5486f3499fde596d8e86df2630b24442
Diffstat (limited to 'svr-agentfwd.c')
-rw-r--r--svr-agentfwd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/svr-agentfwd.c b/svr-agentfwd.c
index c4958c4..f8af30e 100644
--- a/svr-agentfwd.c
+++ b/svr-agentfwd.c
@@ -141,8 +141,8 @@ void agentcleanup(struct ChanSess * chansess) {
* for themselves */
uid = getuid();
gid = getgid();
- if ((setegid(ses.authstate.pw->pw_gid)) < 0 ||
- (seteuid(ses.authstate.pw->pw_uid)) < 0) {
+ if ((setegid(svr_ses.authstate.pw->pw_gid)) < 0 ||
+ (seteuid(svr_ses.authstate.pw->pw_uid)) < 0) {
dropbear_exit("failed to set euid");
}
@@ -194,8 +194,8 @@ static int bindagent(struct ChanSess * chansess) {
/* drop to user privs to make the dir/file */
uid = getuid();
gid = getgid();
- if ((setegid(ses.authstate.pw->pw_gid)) < 0 ||
- (seteuid(ses.authstate.pw->pw_uid)) < 0) {
+ if ((setegid(svr_ses.authstate.pw->pw_gid)) < 0 ||
+ (seteuid(svr_ses.authstate.pw->pw_uid)) < 0) {
dropbear_exit("failed to set euid");
}