View | Details | Raw Unified | Return to bug 899
Collapse All | Expand All

(-)openssh-3.8.1p1.old/auth1.c (-1 / +1 lines)
Lines 302-308 Link Here
302
		authctxt->pw = fakepw();
302
		authctxt->pw = fakepw();
303
	}
303
	}
304
304
305
	setproctitle("%s%s", authctxt->pw ? user : "unknown",
305
	setproctitle("%s%s", authctxt->valid ? user : "unknown",
306
	    use_privsep ? " [net]" : "");
306
	    use_privsep ? " [net]" : "");
307
307
308
#ifdef USE_PAM
308
#ifdef USE_PAM
(-)openssh-3.8.1p1.old/auth2.c (-1 / +1 lines)
Lines 166-172 Link Here
166
				PRIVSEP(start_pam(authctxt));
166
				PRIVSEP(start_pam(authctxt));
167
#endif
167
#endif
168
		}
168
		}
169
		setproctitle("%s%s", authctxt->pw ? user : "unknown",
169
		setproctitle("%s%s", authctxt->valid ? user : "unknown",
170
		    use_privsep ? " [net]" : "");
170
		    use_privsep ? " [net]" : "");
171
		authctxt->service = xstrdup(service);
171
		authctxt->service = xstrdup(service);
172
		authctxt->style = style ? xstrdup(style) : NULL;
172
		authctxt->style = style ? xstrdup(style) : NULL;
(-)openssh-3.8.1p1.old/auth-pam.c (-1 / +1 lines)
Lines 335-341 Link Here
335
	const char *pam_user;
335
	const char *pam_user;
336
336
337
	pam_get_item(sshpam_handle, PAM_USER, (const void **)&pam_user);
337
	pam_get_item(sshpam_handle, PAM_USER, (const void **)&pam_user);
338
	setproctitle("%s [pam]", pam_user);
338
	setproctitle("%s [pam]", sshpam_authctxt && sshpam_authctxt->valid ? pam_user : "unknown");
339
	environ[0] = NULL;
339
	environ[0] = NULL;
340
#endif
340
#endif
341
341

Return to bug 899