diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-05-30 01:58:09 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-05-30 01:58:09 +0200 |
commit | 9abafe226e5f89c783fa9fa388b63878dd473770 (patch) | |
tree | b4145d975583ef98a8449fcbd2ca14fb3f6c99da | |
parent | 5ba51bcd0df358b9be8e8114849043c486b71c23 (diff) | |
download | plan9front-9abafe226e5f89c783fa9fa388b63878dd473770.tar.xz |
hjfs: deal with ORCLOSE in chancreat()
ORCLOSE was effectively ignored for Tcreate. just setting
CHRCLOSE flag on chan should fix it.
-rw-r--r-- | sys/src/cmd/hjfs/fs2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/cmd/hjfs/fs2.c b/sys/src/cmd/hjfs/fs2.c index fc772a832..a4a97c70c 100644 --- a/sys/src/cmd/hjfs/fs2.c +++ b/sys/src/cmd/hjfs/fs2.c @@ -186,6 +186,8 @@ chancreat(Chan *ch, char *name, int perm, int mode) ch->open |= CHREAD; break; } + if((mode & ORCLOSE) != 0) + ch->open |= CHRCLOSE; chend(ch); return 1; inval: |