]> granicus.if.org Git - sudo/commitdiff
Fully qualified hosts w/ wildcards were not matching the FQHOST token type.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 23 Mar 2000 04:38:20 +0000 (04:38 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 23 Mar 2000 04:38:20 +0000 (04:38 +0000)
There's really no need for a separate token for fully-qualified vs.
unqualified anymore so FQHOST is now history and hostname_matches
now decides which hostname (short or long) to check based on whether
or not the pattern contains a '.'.

parse.h

diff --git a/parse.h b/parse.h
index 5e727185a7073d8e3e1a58b392370f2e06c47d0b..9d736f13b27eb9594b9ea7638ea6b14cb57bdd02 100644 (file)
--- a/parse.h
+++ b/parse.h
@@ -109,7 +109,7 @@ extern int top;
  */
 int addr_matches       __P((char *));
 int command_matches    __P((char *, char *, char *, char *));
-int hostname_matches   __P((char *, char *));
+int hostname_matches   __P((char *, char *, char *));
 int netgr_matches      __P((char *, char *, char *, char *));
 int usergr_matches     __P((char *, char *));