summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libutil/login_ok.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/login_ok.c b/lib/libutil/login_ok.c
index 88b6f4e..1bfcd2f 100644
--- a/lib/libutil/login_ok.c
+++ b/lib/libutil/login_ok.c
@@ -20,7 +20,7 @@
*
* Support allow/deny lists in login class capabilities
*
- * $Id: login_ok.c,v 1.3 1997/02/22 15:08:25 peter Exp $
+ * $Id: login_ok.c,v 1.4 1997/05/10 18:55:38 davidn Exp $
*/
#include <stdio.h>
@@ -57,7 +57,7 @@ login_strinlist(char **list, char const *str, int flags)
int i = 0;
while (rc == 0 && list[i] != NULL)
- rc = fnmatch(list[i], str, flags) == 0;
+ rc = fnmatch(list[i++], str, flags) == 0;
}
return rc;
}
OpenPOWER on IntegriCloud