Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 130701790bf2d95e902edf16031ff596 > files > 28

autofs-5.0.1-0.rc2.164.el5_8.src.rpm

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