devshr/devsrv
This commit is contained in:
parent
5784424390
commit
945e2a7aa1
File diff suppressed because it is too large
Load diff
|
@ -124,7 +124,7 @@ srvopen(Chan *c, int omode)
|
||||||
error(Eshutdown);
|
error(Eshutdown);
|
||||||
|
|
||||||
if(omode&OTRUNC)
|
if(omode&OTRUNC)
|
||||||
error("srv file already exists");
|
error(Eexist);
|
||||||
if(openmode(omode)!=sp->chan->mode && sp->chan->mode!=ORDWR)
|
if(openmode(omode)!=sp->chan->mode && sp->chan->mode!=ORDWR)
|
||||||
error(Eperm);
|
error(Eperm);
|
||||||
devpermcheck(sp->owner, sp->perm, omode);
|
devpermcheck(sp->owner, sp->perm, omode);
|
||||||
|
@ -145,9 +145,6 @@ srvcreate(Chan *c, char *name, int omode, ulong perm)
|
||||||
if(openmode(omode) != OWRITE)
|
if(openmode(omode) != OWRITE)
|
||||||
error(Eperm);
|
error(Eperm);
|
||||||
|
|
||||||
if(omode & OCEXEC) /* can't happen */
|
|
||||||
panic("someone broke namec");
|
|
||||||
|
|
||||||
sp = smalloc(sizeof *sp);
|
sp = smalloc(sizeof *sp);
|
||||||
sname = smalloc(strlen(name)+1);
|
sname = smalloc(strlen(name)+1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue