blob: d9bcb76c26e305ea6ece2b88f030d1f227c0a590 (
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.2 2004/06/15 13:21:21 grant Exp $
--- source/hcfile.c.orig 2004-01-06 06:21:44.000000000 +1100
+++ 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 */
|