Displaying 1 result from an estimated 1 matches for "match_cfg_line_group".
2007 Nov 11
0
Patch to sshd match
...17:21:38.000000000 +0000
@@ -498,13 +498,21 @@
* PermittedChannelRequests session,forwarded-tcpip
*/
+/* Check if user is in the comma separated group list grps. Invert condition if not.
+ * line is the config file line.
+ * Return:
+ * 1 match
+ * 0 not match
+ * -1 error
+ */
static int
-match_cfg_line_group(const char *grps, int line, const char *user)
+match_cfg_line_group(const char *grps, int line, const char *user, int not)
{
int result = 0;
u_int ngrps = 0;
char *arg, *p, *cp, *grplist[MAX_MATCH_GROUPS];
struct passwd *pw;
+ char* notstr = not ? "!" : "";
/*
*...