Skip to content

Commit

Permalink
upstream commit
Browse files Browse the repository at this point in the history
fix matching for pattern lists that contain a single
negated match, e.g. "Host !example"

report and patch from Robin Becker. bz#1918 ok dtucker@

Upstream-ID: 05a0cb323ea4bc20e98db099b42c067bfb9ea1ea
  • Loading branch information
djmdjm committed Aug 23, 2016
1 parent 83b5818 commit 4067ec8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions match.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: match.c,v 1.30 2015/05/04 06:10:48 djm Exp $ */
/* $OpenBSD: match.c,v 1.31 2016/08/23 03:22:49 djm Exp $ */
/*
* Author: Tatu Ylonen <[email protected]>
* Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
Expand Down Expand Up @@ -158,7 +158,8 @@ match_pattern_list(const char *string, const char *pattern, int dolower)
return -1; /* Negative */
else
got_positive = 1; /* Positive */
}
} else if (negated)
got_positive = 1;
}

/*
Expand Down

0 comments on commit 4067ec8

Please sign in to comment.