$NetBSD: patch-ae,v 1.2 2001/04/19 20:51:31 jtb Exp $ --- src/gmt_support.c.orig Thu Apr 19 18:02:09 2001 +++ src/gmt_support.c @@ -3483,9 +3483,9 @@ char dir[BUFSIZ]; FILE *fp; - /* First check the $GMTHOME/share directory */ + /* First check the $GMTHOME/gmt/share directory */ - sprintf (path, "%s%cshare%c%s\0", GMTHOME, DIR_DELIM, DIR_DELIM, name); + sprintf (path, "%s%cshare%cgmt%c%s\0", GMTHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM, name); if (!access (path, R_OK)) return (TRUE); /* File exists and is readable, return with name */ /* File was not readable. Now check if it exists */ @@ -3499,7 +3499,7 @@ * It is not an error if we cannot find the named file, only if it is found * but cannot be read due to permission problems */ - sprintf (dir, "%s%cshare%ccoastline.conf\0", GMTHOME, DIR_DELIM, DIR_DELIM); + sprintf (dir, "%s%cshare%cgmt%ccoastline.conf\0", GMTHOME, DIR_DELIM, DIR_DELIM, DIR_DELIM); if (!access (dir, F_OK)) { /* File exists... */ if (access (dir, R_OK)) { /* ...but cannot be read */ fprintf (stderr, "%s: Error: GMT does not have permission to open %s!\n", GMT_program, dir);