From: Jan Kratochvil Date: Thu, 1 Dec 2011 00:55:35 +0000 (+0100) Subject: Fix cross-device --file .patch files. X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=71174f74e243fc093b9c720180ac0a9cc2db1304 Fix cross-device --file .patch files. --- diff --git a/bin/hammock b/bin/hammock index 8844203..2e6fd32 100755 --- a/bin/hammock +++ b/bin/hammock @@ -258,7 +258,7 @@ for my $file (@file) { newdir "$dir/file.d","mayexist"; (my $base=$file)=~s{^.*/}{}; my $d="$dir/file.d/$base"; - link $file,$d or die "link $file $d: $!"; + link $file,$d or spawn "cp -p '$file' '$d'"; newdir "$resultid/file.d","mayexist"; link $d,"$resultid/file.d/$base" or warn "link $file $resultid/file.d/$base: $!"; }