Today's changes.
More changes.
This commit is contained in:
parent
cb27443abf
commit
8ad517944e
73 changed files with 2865 additions and 1293 deletions
|
|
@ -97,6 +97,7 @@ static Dirtab dir[NDIR] =
|
|||
static int ndir = NQID;
|
||||
|
||||
static int srvfd;
|
||||
#define clock plumbclock /* SunOS name clash */
|
||||
static int clock;
|
||||
static Fid *fids[Nhash];
|
||||
static QLock readlock;
|
||||
|
|
|
|||
|
|
@ -54,9 +54,10 @@ threadmain(int argc, char *argv[])
|
|||
error("can't initialize $user or $home: %r");
|
||||
if(plumbfile == nil){
|
||||
sprint(buf, "%s/lib/plumbing", home);
|
||||
if(access(buf, 0) < 0)
|
||||
sprint(buf, "#9/plumb/initial.plumbing");
|
||||
plumbfile = estrdup(buf);
|
||||
if(access(buf, 0) >= 0)
|
||||
plumbfile = estrdup(buf);
|
||||
else
|
||||
plumbfile = unsharp("#9/plumb/initial.plumbing");
|
||||
}
|
||||
|
||||
fd = open(plumbfile, OREAD);
|
||||
|
|
|
|||
|
|
@ -415,7 +415,7 @@ include(char *s)
|
|||
fd = open(t, OREAD);
|
||||
if(fd<0 && t[0]!='/' && strncmp(t, "./", 2)!=0 && strncmp(t, "../", 3)!=0){
|
||||
snprint(buf, sizeof buf, "#9/plumb/%s", t);
|
||||
t = buf;
|
||||
t = unsharp(buf);
|
||||
fd = open(t, OREAD);
|
||||
}
|
||||
if(fd < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue