blob: 0663c91f984b55d7f0af8931582de1343448d6ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
$NetBSD: patch-ab,v 1.1.1.1 2004/05/22 23:37:06 dillo Exp $
--- source/hcfile.c.orig Wed Jan 8 05:26:08 2003
+++ source/hcfile.c
@@ -380,6 +380,15 @@ FILE *TrytoOpen(char *f, char *p, char *
return tempfile;
}
}
+
+ if (STRICMP(d, "lib") == 0) {
+ hugo_makepath(temppath, "", HUGO_LIBDIR, fname, ext);
+ if ((tempfile = HUGO_FOPEN(temppath, p)))
+ {
+ strcpy(f, temppath); /* the new pathname */
+ return tempfile;
+ }
+ }
}
/* Try to open the given, vanilla filename */
|