* amd/mapc.c (maptypes): move MAP_EXEC after MAP_FILE, because
authorErez Zadok <ezk@cs.sunysb.edu>
Fri, 17 Jun 2005 00:23:41 +0000 (00:23 +0000)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 17 Jun 2005 00:23:41 +0000 (00:23 +0000)
exec maps will always match when users use amd with command line
args (not amd.conf).  Using that legacy way, unfortunately, means
that Amd will use it's hard-coded info-service search path, which
doesn't work for everyone.  It's much better to use amd.conf and
specify what you want exactly.

ChangeLog
amd/mapc.c

index 2f5708e761e4fd76964067bc768ebef2cad30af9..d046d2a3036cf8e7ea692cfcf65141e1f022a14b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2005-06-16  Erez Zadok  <ezk@cs.sunysb.edu>
+
+       * amd/mapc.c (maptypes): move MAP_EXEC after MAP_FILE, because
+       exec maps will always match when users use amd with command line
+       args (not amd.conf).  Using that legacy way, unfortunately, means
+       that Amd will use it's hard-coded info-service search path, which
+       doesn't work for everyone.  It's much better to use amd.conf and
+       specify what you want exactly.
+
 2005-06-15  Erez Zadok  <ezk@cs.sunysb.edu>
 
        * minor new port: i386-pc-linux-fc4 (gcc4 catches more bugs).
index d21c8dc9c9d8564630d42fc88f4d3c2d7913636c..f993177ef41f6abcca46305718126308ad8701a0 100644 (file)
@@ -37,7 +37,7 @@
  * SUCH DAMAGE.
  *
  *
- * $Id: mapc.c,v 1.27 2005/03/19 03:05:25 ezk Exp $
+ * $Id: mapc.c,v 1.28 2005/06/17 00:23:41 ezk Exp $
  *
  */
 
@@ -301,17 +301,6 @@ static map_type maptypes[] =
     MAPC_INC
   },
 #endif /* HAVE_MAP_NDBM */
-#ifdef HAVE_MAP_EXEC
-  {
-    "exec",
-    exec_init,
-    error_reload,
-    NULL,                      /* isup function */
-    exec_search,
-    error_mtime,
-    MAPC_INC
-  },
-#endif /* HAVE_MAP_EXEC */
 #ifdef HAVE_MAP_FILE
   {
     "file",
@@ -323,6 +312,17 @@ static map_type maptypes[] =
     MAPC_ALL
   },
 #endif /* HAVE_MAP_FILE */
+#ifdef HAVE_MAP_EXEC
+  {
+    "exec",
+    exec_init,
+    error_reload,
+    NULL,                      /* isup function */
+    exec_search,
+    error_mtime,
+    MAPC_INC
+  },
+#endif /* HAVE_MAP_EXEC */
   {
     "error",
     error_init,