summaryrefslogtreecommitdiffstats
path: root/source/a/shadow/patches/r3090.diff
blob: 46057673e455bfd5caaad65f618b8e187533e570 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- libmisc/env.c.orig	2011-02-13 11:58:11.000000000 -0600
+++ libmisc/env.c	2012-08-14 10:38:25.304917619 -0500
@@ -251,7 +251,7 @@
 			if (strncmp (*cur, *bad, strlen (*bad)) != 0) {
 				continue;
 			}
-			if (strchr (*cur, '/') != NULL) {
+			if (strchr (*cur, '/') == NULL) {
 				continue;	/* OK */
 			}
 			for (move = cur; NULL != *move; move++) {