blob: 0f5bc0600f2b726fe4e5a4371f863fdd6149742f (
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.3 2005/05/07 23:04:17 dillo Exp $
--- source/hcfile.c.orig 2005-01-17 21:10:00.000000000 +0100
+++ 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 */
|