aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vbackup
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2007-06-12 18:35:37 +0000
committerrsc <devnull@localhost>2007-06-12 18:35:37 +0000
commit933a86257768a976b18cabc7ac909c976ffbe1c5 (patch)
tree4f5a70de74386e415ca4c35afe54a7408929a39d /src/cmd/vbackup
parent9437f55b49afeca070264aec93f94b840e055c89 (diff)
downloadplan9port-933a86257768a976b18cabc7ac909c976ffbe1c5.tar.gz
plan9port-933a86257768a976b18cabc7ac909c976ffbe1c5.tar.bz2
plan9port-933a86257768a976b18cabc7ac909c976ffbe1c5.zip
always write last block in vcat (dave swasey)
Diffstat (limited to 'src/cmd/vbackup')
-rw-r--r--src/cmd/vbackup/vcat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/vbackup/vcat.c b/src/cmd/vbackup/vcat.c
index a6f630f3..01320fbd 100644
--- a/src/cmd/vbackup/vcat.c
+++ b/src/cmd/vbackup/vcat.c
@@ -64,7 +64,7 @@ threadmain(int argc, char **argv)
fprint(2, "error writing block %lud: %r\n", i);
n++;
blockput(b);
- }else if(zerotoo)
+ }else if(zerotoo || i==fsys->nblock-1)
if(pwrite(1, zero, fsys->blocksize,
(u64int)fsys->blocksize*i) != fsys->blocksize)
fprint(2, "error writing block %lud: %r\n", i);