bmh10 / rpms / openssh

Forked from rpms/openssh 10 days ago
Clone
f94360
Index: b/session.c
f94360
===================================================================
f94360
--- b.orig/session.c
d1c05f
+++ b/session.c
f94360
@@ -2206,7 +2206,7 @@ session_env_req(struct ssh *ssh, Session
d1c05f
 
d1c05f
 	for (i = 0; i < options.num_accept_env; i++) {
d1c05f
 		if (match_pattern(name, options.accept_env[i])) {
d1c05f
-			debug2("Setting env %d: %s=%s", s->num_env, name, val);
d1c05f
+			verbose("Setting env %d: %s=%s user=%s", s->num_env, name, val, s->pw->pw_name);
d1c05f
 			s->env = xrecallocarray(s->env, s->num_env,
d1c05f
 			    s->num_env + 1, sizeof(*s->env));
d1c05f
 			s->env[s->num_env].name = name;
f94360
@@ -2215,7 +2215,7 @@ session_env_req(struct ssh *ssh, Session
d1c05f
 			return (1);
d1c05f
 		}
d1c05f
 	}
d1c05f
-	debug2("Ignoring env request %s: disallowed name", name);
d1c05f
+	verbose("Ignoring env request %s user=%s : disallowed name", name, s->pw->pw_name);
d1c05f
 
d1c05f
  fail:
d1c05f
 	free(name);