2013-09-26 17:14:40 +02:00

21 lines
530 B
Plaintext

$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 */