Introduction
Introduction Statistics Contact Development Disclaimer Help
tuse vtfilecreate right - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 7b99eb273267e775f0534e09390f1e24c0a84543
parent 3082404ea96142276c4cf000920b528f52ca631e
Author: rsc <devnull@localhost>
Date: Wed, 13 Jul 2005 13:40:24 +0000
use vtfilecreate right
Diffstat:
M src/cmd/vac/file.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/cmd/vac/file.c b/src/cmd/vac/file.c
t@@ -422,11 +422,11 @@ vacfilecreate(VacFile *f, char *elem, ulong mode, char *…
ff = filealloc(f->fs);
isdir = mode & ModeDir;
- r = vtfilecreate(pr, pr->dsize, xxx, isdir, VtDataType);
+ r = vtfilecreate(pr, pr->psize, pr->dsize, isdir ? VtDirType : VtDataT…
if(r == nil)
goto Err;
if(isdir){
- mr = vtfilecreate(pr, pr->dsize, xxx, 0, r->offset);
+ mr = vtfilecreate(pr, pr->psize, pr->dsize, VtDataType);
if(mr == nil)
goto Err;
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.