From: Todd C. Miller Date: Tue, 6 Apr 1999 05:08:40 +0000 (+0000) Subject: Definitions of *_matched were wrong--user top, not top-2 as subscript. X-Git-Tag: SUDO_1_6_0~302 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1818ace0536faf189f74ec4baa7d51d80397c953;p=sudo Definitions of *_matched were wrong--user top, not top-2 as subscript. --- diff --git a/sudo.h b/sudo.h index edefbd91c..c786a17ec 100644 --- a/sudo.h +++ b/sudo.h @@ -65,13 +65,13 @@ extern struct matchstack *match; extern int top; #define user_matches (match[top-1].user) -#define user_matched (match[top-2].user) +#define user_matched (match[top].user) #define cmnd_matches (match[top-1].cmnd) -#define cmnd_matched (match[top-2].cmnd) +#define cmnd_matched (match[top].cmnd) #define host_matches (match[top-1].host) -#define host_matched (match[top-2].host) +#define host_matched (match[top].host) #define runas_matches (match[top-1].runas) -#define runas_matched (match[top-2].runas) +#define runas_matched (match[top].runas) #define no_passwd (match[top-1].nopass) /*