X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/10251e7b189af377b02f6ea5ec6d0b010ca1eeef..8e286d6555f683edeb30cc0ea794595102f00ee7:/mr diff --git a/mr b/mr index ff4adce..8d6d1dd 100755 --- a/mr +++ b/mr @@ -383,7 +383,7 @@ due to being offline. You can delete or edit this file to remove commands, or even to add other commands for 'mr online' to run. If the file is present, mr assumes it is in offline mode. -=head "UNTRUSTED MRCONFIG FILES" +=head1 "UNTRUSTED MRCONFIG FILES" Since mrconfig files can contain arbitrary shell commands, they can do anything. This flexability is good, but it also allows a malicious mrconfig @@ -1357,7 +1357,9 @@ sub bootstrap { print STDERR "mr: .mrconfig file already exists, not overwriting with $url\n"; } else { - rename($tmpconfig, ".mrconfig") || die "rename: $!"; + eval q{use File::Copy}; + die $@ if $@; + move($tmpconfig, ".mrconfig") || die "rename: $!"; } exec("mr $ENV{MR_SWITCHES} -c .mrconfig checkout");