CVS/Root is always just updated, never re-created (to keep file attributes)
authorshort <>
Mon, 4 Mar 2002 03:03:39 +0000 (03:03 +0000)
committershort <>
Mon, 4 Mar 2002 03:03:39 +0000 (03:03 +0000)
bin/cvsutil

index 27a4ab5..b3bf3a8 100755 (executable)
@@ -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;
 }