mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
more searchpath-related changes
This commit is contained in:
parent
7c604f0ddf
commit
de39860a2a
3 changed files with 3 additions and 1 deletions
|
@ -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),
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue