From 337694b030e9f20f76a6a08b0e9c9929e1e333a7 Mon Sep 17 00:00:00 2001 From: short <> Date: Mon, 4 Mar 2002 03:03:39 +0000 Subject: [PATCH] CVS/Root is always just updated, never re-created (to keep file attributes) --- bin/cvsutil | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/cvsutil b/bin/cvsutil index 27a4ab5..b3bf3a8 100755 --- a/bin/cvsutil +++ b/bin/cvsutil @@ -194,11 +194,12 @@ my($filename)=@_; sub localactionrootset { local *R; - if (!open R,'>',ROOT) { + if (!open R,'+<',ROOT) { mayfatal "File \"".ROOT."\" cannot be written"; return; } print R "$opt_root\n"; + truncate R,tell R; close R; } -- 1.8.3.1