mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-05 18:58:55 -04:00
16 lines
510 B
C
16 lines
510 B
C
$NetBSD: patch-auth2.c,v 1.6 2016/01/18 12:53:26 jperkin Exp $
|
|
|
|
Replace uid 0 with ROOTUID macro
|
|
|
|
--- auth2.c.orig 2015-08-21 04:49:03.000000000 +0000
|
|
+++ auth2.c
|
|
@@ -302,7 +302,7 @@ userauth_finish(Authctxt *authctxt, int
|
|
fatal("INTERNAL ERROR: authenticated and postponed");
|
|
|
|
/* Special handling for root */
|
|
- if (authenticated && authctxt->pw->pw_uid == 0 &&
|
|
+ if (authenticated && authctxt->pw->pw_uid == ROOTUID &&
|
|
!auth_root_allowed(method)) {
|
|
authenticated = 0;
|
|
#ifdef SSH_AUDIT_EVENTS
|