git://git.jankratochvil.net
/
nethome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CVS/Root is always just updated, never re-created (to keep file attributes)
[nethome.git]
/
bin
/
cvsutil
diff --git
a/bin/cvsutil
b/bin/cvsutil
index
27a4ab5
..
b3bf3a8
100755
(executable)
--- 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;
}