webfs: truncate cookie file when rewriting

front
cinap_lenrek 2011-11-17 23:00:49 +01:00
parent 660fac829c
commit 96a7ef06b8
1 changed files with 1 additions and 1 deletions

View File

@ -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);