bmh10 / rpms / openssh

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