diff options
author | cinap_lenrek <cinap_lenrek@localhost> | 2011-08-14 11:11:51 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@localhost> | 2011-08-14 11:11:51 +0200 |
commit | 945e2a7aa1ab14d4aa342615bb62a35437502e31 (patch) | |
tree | 25b567fe3c610d43022289f2614373e07aeaf767 /sys/src/9/port/devsrv.c | |
parent | 578442439060f8936ae0fc31f46cbfeb5e298ab8 (diff) |
devshr/devsrv
Diffstat (limited to 'sys/src/9/port/devsrv.c')
-rw-r--r-- | sys/src/9/port/devsrv.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/src/9/port/devsrv.c b/sys/src/9/port/devsrv.c index 2c021289e..867d077d7 100644 --- a/sys/src/9/port/devsrv.c +++ b/sys/src/9/port/devsrv.c @@ -124,7 +124,7 @@ srvopen(Chan *c, int omode) error(Eshutdown); if(omode&OTRUNC) - error("srv file already exists"); + error(Eexist); if(openmode(omode)!=sp->chan->mode && sp->chan->mode!=ORDWR) error(Eperm); devpermcheck(sp->owner, sp->perm, omode); @@ -145,9 +145,6 @@ srvcreate(Chan *c, char *name, int omode, ulong perm) if(openmode(omode) != OWRITE) error(Eperm); - if(omode & OCEXEC) /* can't happen */ - panic("someone broke namec"); - sp = smalloc(sizeof *sp); sname = smalloc(strlen(name)+1); |