From d0b7e2da1b30301666c9b8e819db7f281d968d3a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 29 Mar 2019 21:18:50 +0100 Subject: [PATCH] bex-add: if attachments are given as symlinks, dereference them --- lib/bin/bex-add | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.39.2