From: short <> Date: Mon, 4 Mar 2002 03:03:39 +0000 (+0000) Subject: CVS/Root is always just updated, never re-created (to keep file attributes) X-Git-Tag: bp_liverpm~164 X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=337694b030e9f20f76a6a08b0e9c9929e1e333a7 CVS/Root is always just updated, never re-created (to keep file attributes) --- 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; }