From d8fea76992e8a2490dec3c3bc4f78777d345c3e9 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 22 Oct 2022 14:47:49 -0700 Subject: [PATCH] chmod exiftool in Exif.php --- lib/Exif.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Exif.php b/lib/Exif.php index 2c086ad2..c2823e02 100644 --- a/lib/Exif.php +++ b/lib/Exif.php @@ -400,6 +400,7 @@ class Exif // We know already where it is if (!empty($configPath) && file_exists($configPath)) { + chmod($configPath, 0755); return $configPath; } @@ -428,6 +429,9 @@ class Exif // check if file exists if (file_exists($path)) { + // make executable before version check + chmod($path, 0755); + // check if the version prints correctly $ver = self::EXIFTOOL_VER; $vero = shell_exec("{$path} -ver"); @@ -448,6 +452,7 @@ class Exif // Fallback to perl script $path = __DIR__.'/../exiftool-bin/exiftool/exiftool'; if (file_exists($path)) { + chmod($path, 0755); return $path; }