View | Details | Raw Unified | Return to bug 387 | Differences between
and this patch

Collapse All | Expand All

(-)auth1.c (-1 / +2 lines)
Lines 295-301 Link Here
295
			    authctxt->user);
295
			    authctxt->user);
296
296
297
		/* Special handling for root */
297
		/* Special handling for root */
298
		if (authenticated && authctxt->pw->pw_uid == 0 &&
298
		if (!use_privsep &&
299
		    authenticated && authctxt->pw->pw_uid == 0 &&
299
		    !auth_root_allowed(get_authname(type)))
300
		    !auth_root_allowed(get_authname(type)))
300
			authenticated = 0;
301
			authenticated = 0;
301
302
(-)auth2.c (-1 / +2 lines)
Lines 195-201 Link Here
195
		    authctxt->user);
195
		    authctxt->user);
196
196
197
	/* Special handling for root */
197
	/* Special handling for root */
198
	if (authenticated && authctxt->pw->pw_uid == 0 &&
198
	if (!use_privsep &&
199
	    authenticated && authctxt->pw->pw_uid == 0 &&
199
	    !auth_root_allowed(method))
200
	    !auth_root_allowed(method))
200
		authenticated = 0;
201
		authenticated = 0;
201
202

Return to bug 387