diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-05-12 12:07:03 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-05-12 12:07:03 +0000 |
commit | b36a5dfc910b36a587f505420e6e082bd69d8b08 (patch) | |
tree | 0d81a12afa8aa5789eeb6f4df0f7756578fbe66e /sys/src/cmd/cwfs/9p2.c | |
parent | ac2e6cf02063ca9f9769b669ef53ce5c1a764f4e (diff) |
cwfs: +t
Diffstat (limited to 'sys/src/cmd/cwfs/9p2.c')
-rw-r--r-- | sys/src/cmd/cwfs/9p2.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/src/cmd/cwfs/9p2.c b/sys/src/cmd/cwfs/9p2.c index 731e1c3a3..1133a3fdf 100644 --- a/sys/src/cmd/cwfs/9p2.c +++ b/sys/src/cmd/cwfs/9p2.c @@ -18,6 +18,8 @@ mkmode9p1(ulong mode9p2) mode |= DAPND; if(mode9p2 & DMDIR) mode |= DDIR; + if(mode9p2 & DMTMP) + mode |= DTMP; return mode; } @@ -45,6 +47,8 @@ mktype9p2(int mode9p1) type |= QTAPPEND; if(mode9p1 & DDIR) type |= QTDIR; + if(mode9p1 & DTMP) + type |= QTTMP; return type; } @@ -61,6 +65,8 @@ mkmode9p2(int mode9p1) mode |= DMAPPEND; if(mode9p1 & DDIR) mode |= DMDIR; + if(mode9p1 & DTMP) + mode |= DMTMP; return mode; } @@ -1488,7 +1494,7 @@ fs_wstat(Chan* chan, Fcall* f, Fcall*, char* strs) error = Ewstatq; goto out; } - if(dir.mode & ~(DMDIR|DMAPPEND|DMEXCL|0777)){ + if(dir.mode & ~(DMDIR|DMAPPEND|DMEXCL|DMTMP|0777)){ error = Ewstatb; goto out; } |