aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-23 23:19:47 +0000
committerrsc <devnull@localhost>2005-01-23 23:19:47 +0000
commitde39860a2a2cadf8ede07817c2530a521aed1491 (patch)
tree83b64289b20375374df3de4202edc8b8d8c70fdf
parent7c604f0ddf394fa9f24b48df54c4c44d9533ec7c (diff)
downloadplan9port-de39860a2a2cadf8ede07817c2530a521aed1491.tar.gz
plan9port-de39860a2a2cadf8ede07817c2530a521aed1491.tar.bz2
plan9port-de39860a2a2cadf8ede07817c2530a521aed1491.zip
more searchpath-related changes
-rw-r--r--man/man1/0intro.11
-rw-r--r--src/cmd/rc/rc.h1
-rw-r--r--src/cmd/rc/simple.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/man/man1/0intro.1 b/man/man1/0intro.1
index bbcbc6e8..2712fab8 100644
--- a/man/man1/0intro.1
+++ b/man/man1/0intro.1
@@ -331,6 +331,7 @@ network in
.IR notify (3),
.IR post9pservice (3),
.IR rfork (3),
+.IR searchpath (3),
.IR sendfd (3),
.IR udpread (3),
.IR wait (3),
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)