From 6d26fadfe679d44fa6e39c1f0411edfa247b6fc9 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 10 Apr 2023 19:38:07 -0700 Subject: [PATCH] binext: use realpath Signed-off-by: Varun Patil --- lib/BinExt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/BinExt.php b/lib/BinExt.php index 913c8025..47665b2a 100644 --- a/lib/BinExt.php +++ b/lib/BinExt.php @@ -40,7 +40,7 @@ class BinExt $cmd = implode(' ', array_merge(self::getExiftool(), ['-ver'])); $out = shell_exec($cmd); if (!$out) { - throw new \Exception('failed to run exiftool'); + throw new \Exception("failed to run exiftool: {$cmd}"); } $version = trim($out); @@ -64,7 +64,7 @@ class BinExt public static function getExiftool(): array { if (Util::getSystemConfig('memories.exiftool_no_local')) { - return ['perl', __DIR__.'/../exiftool-bin/exiftool/exiftool']; + return ['perl', realpath(__DIR__.'/../exiftool-bin/exiftool/exiftool')]; } return [self::getExiftoolPBin()];