diff -up autofs-5.0.1/modules/lookup_yp.c.correct-logic-test-wild-lookup autofs-5.0.1/modules/lookup_yp.c --- autofs-5.0.1/modules/lookup_yp.c.correct-logic-test-wild-lookup 2007-09-25 11:50:47.000000000 +0800 +++ autofs-5.0.1/modules/lookup_yp.c 2007-09-25 11:51:04.000000000 +0800 @@ -523,12 +523,12 @@ static int check_map_indirect(struct aut } } else { /* Wildcard not in map but now is */ - if (wild & (CHE_OK || CHE_UPDATED)) + if (wild & (CHE_OK | CHE_UPDATED)) source->stale = 1; } pthread_cleanup_pop(1); - if (wild & (CHE_OK || CHE_UPDATED)) + if (wild & (CHE_OK | CHE_UPDATED)) return NSS_STATUS_SUCCESS; } diff -up autofs-5.0.1/modules/lookup_nisplus.c.correct-logic-test-wild-lookup autofs-5.0.1/modules/lookup_nisplus.c --- autofs-5.0.1/modules/lookup_nisplus.c.correct-logic-test-wild-lookup 2007-09-25 11:50:47.000000000 +0800 +++ autofs-5.0.1/modules/lookup_nisplus.c 2007-09-25 11:51:04.000000000 +0800 @@ -438,12 +438,12 @@ static int check_map_indirect(struct aut } } else { /* Wildcard not in map but now is */ - if (wild & (CHE_OK || CHE_UPDATED)) + if (wild & (CHE_OK | CHE_UPDATED)) source->stale = 1; } pthread_cleanup_pop(1); - if (wild & (CHE_UPDATED || CHE_OK)) + if (wild & (CHE_UPDATED | CHE_OK)) return NSS_STATUS_SUCCESS; } diff -up autofs-5.0.1/modules/lookup_file.c.correct-logic-test-wild-lookup autofs-5.0.1/modules/lookup_file.c --- autofs-5.0.1/modules/lookup_file.c.correct-logic-test-wild-lookup 2007-09-25 11:50:47.000000000 +0800 +++ autofs-5.0.1/modules/lookup_file.c 2007-09-25 11:51:04.000000000 +0800 @@ -983,12 +983,12 @@ static int check_map_indirect(struct aut } } else { /* Wildcard not in map but now is */ - if (wild & (CHE_OK || CHE_UPDATED)) + if (wild & (CHE_OK | CHE_UPDATED)) source->stale = 1; } pthread_cleanup_pop(1); - if (wild & (CHE_OK || CHE_UPDATED)) + if (wild & (CHE_OK | CHE_UPDATED)) return NSS_STATUS_SUCCESS; } diff -up autofs-5.0.1/CHANGELOG.correct-logic-test-wild-lookup autofs-5.0.1/CHANGELOG