]> mj.ucw.cz Git - bex.git/commitdiff
bex-add: if attachments are given as symlinks, dereference them
authorMartin Mares <mj@ucw.cz>
Fri, 29 Mar 2019 20:18:50 +0000 (21:18 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 29 Mar 2019 20:18:50 +0000 (21:18 +0100)
lib/bin/bex-add

index 195300eb6fc389e71d07fcaa7878b9e55ce5ac51..5ed30b59b321025167f06ee390b7d0e816b920e5 100755 (executable)
@@ -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";