From 2763a6d8324fc5e1296e9a50a067ec04d52c581f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 21 Oct 2014 07:25:13 -0400 Subject: venti/copy: fix bug writing directories that zero truncate Found by nwf. TBR=rsc https://codereview.appspot.com/162860045 --- CONTRIBUTORS | 1 + src/cmd/venti/copy.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 36522a1d..0b9a5415 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -37,6 +37,7 @@ Mathieu Lonjaret Mathieu Lonjaret Michael Teichgräber Michael Teichgräber +Nathaniel W Filardo Nikolai Saoukh Yuval Pavel Zholkover Peter Saveliev diff --git a/src/cmd/venti/copy.c b/src/cmd/venti/copy.c index 8c791f2a..d6d770bc 100644 --- a/src/cmd/venti/copy.c +++ b/src/cmd/venti/copy.c @@ -136,7 +136,7 @@ walk(uchar score[VtScoreSize], uint type, int base, int depth) break; case VtDirType: - for(i=0; i