Author: Paul Wise <pabs@debian.org>
Description: flasm to search for /etc/flasm.ini
Forwarded: http://sf.net/p/flasm/patches/1/
Last-Update: 2007-07-08
--- a/flasm.c
+++ b/flasm.c
@@ -1481,7 +1481,11 @@
 
 		strcpy(inipathptr + 1, "flasm.ini");
 		if ((iniFile = fopen(inipath, "r")) == NULL)
-			return -1;
+#ifdef CONFIG_PATH
+			/* flasm.ini not found in current directory, look at config path */
+			if ((iniFile = fopen(CONFIG_PATH, "r")) == NULL)
+#endif
+				return -1;
 	}
 
 	while (fgets(ln, 256, iniFile)) {													 /* read ini file */
