diff svr-agentfwd.c @ 33:f789045062e6

Progressing client support
author Matt Johnston <matt@ucc.asn.au>
date Tue, 27 Jul 2004 16:30:46 +0000
parents db2c8e6fb284
children 20563735e8b5
line wrap: on
line diff
--- a/svr-agentfwd.c	Tue Jul 27 15:12:29 2004 +0000
+++ b/svr-agentfwd.c	Tue Jul 27 16:30:46 2004 +0000
@@ -152,8 +152,8 @@
 		 * for themselves */
 		uid = getuid();
 		gid = getgid();
-		if ((setegid(svr_ses.authstate.pw->pw_gid)) < 0 ||
-			(seteuid(svr_ses.authstate.pw->pw_uid)) < 0) {
+		if ((setegid(ses.authstate.pw->pw_gid)) < 0 ||
+			(seteuid(ses.authstate.pw->pw_uid)) < 0) {
 			dropbear_exit("failed to set euid");
 		}
 
@@ -215,8 +215,8 @@
 	/* drop to user privs to make the dir/file */
 	uid = getuid();
 	gid = getgid();
-	if ((setegid(svr_ses.authstate.pw->pw_gid)) < 0 ||
-		(seteuid(svr_ses.authstate.pw->pw_uid)) < 0) {
+	if ((setegid(ses.authstate.pw->pw_gid)) < 0 ||
+		(seteuid(ses.authstate.pw->pw_uid)) < 0) {
 		dropbear_exit("failed to set euid");
 	}