diff options
author | rsc <devnull@localhost> | 2005-01-23 23:19:47 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-23 23:19:47 +0000 |
commit | de39860a2a2cadf8ede07817c2530a521aed1491 (patch) | |
tree | 83b64289b20375374df3de4202edc8b8d8c70fdf /src/cmd/rc | |
parent | 7c604f0ddf394fa9f24b48df54c4c44d9533ec7c (diff) | |
download | plan9port-de39860a2a2cadf8ede07817c2530a521aed1491.tar.gz plan9port-de39860a2a2cadf8ede07817c2530a521aed1491.tar.bz2 plan9port-de39860a2a2cadf8ede07817c2530a521aed1491.zip |
more searchpath-related changes
Diffstat (limited to 'src/cmd/rc')
-rw-r--r-- | src/cmd/rc/rc.h | 1 | ||||
-rw-r--r-- | src/cmd/rc/simple.c | 2 |
2 files changed, 2 insertions, 1 deletions
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) |