pkgsrc/games/hugo/patches/patch-ab

20 lines
530 B
Text

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