From: Martin Mares Date: Fri, 29 Mar 2019 20:18:50 +0000 (+0100) Subject: bex-add: if attachments are given as symlinks, dereference them X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=d0b7e2da1b30301666c9b8e819db7f281d968d3a;p=bex.git bex-add: if attachments are given as symlinks, dereference them --- diff --git a/lib/bin/bex-add b/lib/bin/bex-add index 195300e..5ed30b5 100755 --- a/lib/bin/bex-add +++ b/lib/bin/bex-add @@ -123,7 +123,7 @@ if (@attach) { $? and die "Cannot delete old attachment $adest\n"; $msg = "Updated attachment"; } - system "/bin/cp", "-a", $asrc, $adest; + system "/bin/cp", "-aL", $asrc, $adest; $? and die "Cannot copy attachment $asrc to $adest\n"; if (-d $asrc) { print "$msg $base/...\n";