Commit Diff


commit - 7c604f0ddf394fa9f24b48df54c4c44d9533ec7c
commit + de39860a2a2cadf8ede07817c2530a521aed1491
blob - bbcbc6e83d99d5d7f948d17b7b952ade900faccc
blob + 2712fab8180c0ae66d79f6fbfd47c8465508cb23
--- man/man1/0intro.1
+++ 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),
blob - b7edbac48714b77acabdcc179b95b18f96e7824f
blob + 0996eec566e7cdac5f1b881c7d08f563f19344c5
--- src/cmd/rc/rc.h
+++ 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;
blob - a65bec22a455a4272a1d6a5d6720c5fdcfc68ff2
blob + 6ac02d5947ca87784c00bcc32e32bcd2053cc1c2
--- src/cmd/rc/simple.c
+++ 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)