URI: 
       tupdate - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 3082404ea96142276c4cf000920b528f52ca631e
   DIR parent 88dc23aedf161a1a060b9dfc0ab7917ce39ca08e
  HTML Author: rsc <devnull@localhost>
       Date:   Wed, 13 Jul 2005 13:40:05 +0000
       
       update
       
       Diffstat:
         M src/libventi/file.c                 |       5 +++--
       
       1 file changed, 3 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/src/libventi/file.c b/src/libventi/file.c
       t@@ -178,7 +178,7 @@ vtfileopen(VtFile *r, u32int offset, int mode)
        }
        
        VtFile *
       -vtfilecreate(VtFile *r, int psize, int dsize, int dir)
       +vtfilecreate(VtFile *r, int psize, int dsize, int type)
        {
                int i;
                VtBlock *b;
       t@@ -191,6 +191,7 @@ vtfilecreate(VtFile *r, int psize, int dsize, int dir)
                assert(ISLOCKED(r));
                assert(psize <= VtMaxLumpSize);
                assert(dsize <= VtMaxLumpSize);
       +        assert(type == VtDirType || type == VtDataType);
        
                if(!r->dir){
                        werrstr(ENotDir);
       t@@ -232,7 +233,7 @@ Found:
                e.psize = psize;
                e.dsize = dsize;
                e.flags = VtEntryActive;
       -        e.type = dir ? VtDirType : VtDataType;
       +        e.type = type;
                e.size = 0;
                memmove(e.score, vtzeroscore, VtScoreSize);
                vtentrypack(&e, b->data, i);