diff svr-agentfwd.c @ 5:bc6477a6c393

syntactical fixups - it compiles, but channel handling code requires fixing.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 01 Jun 2004 04:20:12 +0000
parents fe6bca95afa7
children f76c9389e9e0
line wrap: on
line diff
--- a/svr-agentfwd.c	Tue Jun 01 02:46:09 2004 +0000
+++ b/svr-agentfwd.c	Tue Jun 01 04:20:12 2004 +0000
@@ -141,8 +141,8 @@
 	 * 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 @@
 	/* 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");
 	}