aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vac
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-13 13:40:24 +0000
committerrsc <devnull@localhost>2005-07-13 13:40:24 +0000
commit7b99eb273267e775f0534e09390f1e24c0a84543 (patch)
treea6de0c1714af65bf5d65c027e3557bb9ee795ed0 /src/cmd/vac
parent3082404ea96142276c4cf000920b528f52ca631e (diff)
downloadplan9port-7b99eb273267e775f0534e09390f1e24c0a84543.tar.gz
plan9port-7b99eb273267e775f0534e09390f1e24c0a84543.tar.bz2
plan9port-7b99eb273267e775f0534e09390f1e24c0a84543.zip
use vtfilecreate right
Diffstat (limited to 'src/cmd/vac')
-rw-r--r--src/cmd/vac/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/vac/file.c b/src/cmd/vac/file.c
index ed96351d..9e174e72 100644
--- a/src/cmd/vac/file.c
+++ b/src/cmd/vac/file.c
@@ -422,11 +422,11 @@ vacfilecreate(VacFile *f, char *elem, ulong mode, char *uid)
ff = filealloc(f->fs);
isdir = mode & ModeDir;
- r = vtfilecreate(pr, pr->dsize, xxx, isdir, VtDataType);
+ r = vtfilecreate(pr, pr->psize, pr->dsize, isdir ? VtDirType : VtDataType);
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;
}