rcolebaugh / rpms / openssh

Forked from rpms/openssh 2 years ago
Clone
Michel Lind 1c324b
--- a/session.c
d1c05f
+++ b/session.c
Michel Lind 1c324b
@@ -2210,7 +2210,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;
Michel Lind 1c324b
@@ -2219,7 +2219,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);