From de39860a2a2cadf8ede07817c2530a521aed1491 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 23 Jan 2005 23:19:47 +0000 Subject: more searchpath-related changes --- src/cmd/rc/rc.h | 1 + src/cmd/rc/simple.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cmd/rc') diff --git a/src/cmd/rc/rc.h b/src/cmd/rc/rc.h index b7edbac4..0996eec5 100644 --- a/src/cmd/rc/rc.h +++ b/src/cmd/rc/rc.h @@ -28,6 +28,7 @@ #endif #undef pipe /* so that /dev/fd works */ +#define searchpath rcsearchpath /* avoid new libc function */ typedef struct tree tree; typedef struct word word; diff --git a/src/cmd/rc/simple.c b/src/cmd/rc/simple.c index a65bec22..6ac02d59 100644 --- a/src/cmd/rc/simple.c +++ b/src/cmd/rc/simple.c @@ -100,7 +100,7 @@ void doredir(redir *rp) word *searchpath(char *w){ word *path; if(strncmp(w, "/", 1)==0 - || strncmp(w, "#", 1)==0 +/* || strncmp(w, "#", 1)==0 */ || strncmp(w, "./", 2)==0 || strncmp(w, "../", 3)==0 || (path=vlook("path")->val)==0) -- cgit v1.2.3