openbsd-ports/editors/uemacs/patches/patch-src_bind_c

27 lines
809 B
Plaintext

$OpenBSD: patch-src_bind_c,v 1.1 2004/01/06 03:29:09 espie Exp $
--- src/bind.c.orig 1995-11-19 03:09:20.000000000 +0100
+++ src/bind.c 2004-01-06 04:20:22.000000000 +0100
@@ -634,7 +634,8 @@ int hflag; /* Look in the HOME environme
register char *sp; /* pointer into path spec */
register int i; /* index */
static char fspec[NFILEN]; /* full path spec to search */
-
+ char patha[NFILEN];
+
/* if we have an absolute path.. check only there! */
sp = fname;
while (*sp) {
@@ -689,9 +690,11 @@ int hflag; /* Look in the HOME environme
#if OS2
path = getenv("DPATH");
#else
- path = getenv("PATH");
+ strncpy(patha, getenv("PATH"), NFILEN - 25);
+ strcat(patha, ":/usr/local/share/uemacs");
#endif
#endif
+ path = patha;
if (path != NULL)
while (*path) {