-#endif /* MHRC */
-
- default:
- /* Check nmh Mail directory */
- if (access ((cp = m_mailpath (file)), R_OK) != NOTOK)
- return cp;
- }
-
- /* Check nmh `etc' directory */
- snprintf (epath, sizeof(epath), nmhetcdir(/%s), file);
- return (access (epath, R_OK) != NOTOK ? epath : file);
+ if (*file == '/') {
+ /* If already absolute pathname, return it */
+ return file;
+ }
+
+ /* Check nmh Mail directory */
+ strncpy(epath, toabsdir(file), sizeof epath);
+ if (access(epath, R_OK) != NOTOK)
+ return epath;
+
+ /* Check nmh `etc' directory */
+ snprintf(epath, sizeof epath, NMHETCDIR"/%s", file);
+ return (access(epath, R_OK) != NOTOK ? epath : file);