diff -urN shadow-4.1.4.2/libmisc/env.c shadow-4.1.4.2.new/libmisc/env.c --- shadow-4.1.4.2/libmisc/env.c 2009-04-27 23:07:56.000000000 +0300 +++ shadow-4.1.4.2.new/libmisc/env.c 2010-06-22 12:32:07.000000000 +0300 @@ -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++) {