From: Erez Zadok Date: Fri, 17 Jun 2005 00:23:41 +0000 (+0000) Subject: * amd/mapc.c (maptypes): move MAP_EXEC after MAP_FILE, because X-Git-Tag: am-utils-6_1_1~47 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=13e9b40b3c1ae31a1a8c0175de371b4cce306f28;p=am-utils-6.0.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 2f5708e..d046d2a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-06-16 Erez Zadok + + * 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 * minor new port: i386-pc-linux-fc4 (gcc4 catches more bugs). diff --git a/amd/mapc.c b/amd/mapc.c index d21c8dc..f993177 100644 --- a/amd/mapc.c +++ b/amd/mapc.c @@ -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,