webfs: truncate cookie file when rewriting
parent
660fac829c
commit
96a7ef06b8
|
@ -435,7 +435,7 @@ syncjar(Jar *jar)
|
|||
|
||||
purgejar(jar);
|
||||
|
||||
b = Bopen(jar->file, OWRITE);
|
||||
b = Bopen(jar->file, OTRUNC|OWRITE);
|
||||
if(b == nil){
|
||||
if(cookiedebug)
|
||||
fprint(2, "Bopen write %s: %r", jar->file);
|
||||
|
|
Loading…
Reference in New Issue