From e6184a0036eb4e489526b40f6eb635ec960781b2 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Mon, 26 Jan 2026 22:55:18 +0200 Subject: [PATCH] Fix to only check for uniqueness --- web-lib-funcs.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web-lib-funcs.pl b/web-lib-funcs.pl index 4fea01e2c..52e3b6c3f 100755 --- a/web-lib-funcs.pl +++ b/web-lib-funcs.pl @@ -415,10 +415,10 @@ push(@can_dirs, $gconfig{'tempdir_sys'}) if ($gconfig{'tempdir_sys'}); # Common fallbacks push(@can_dirs, "/dev/shm", "/tmp", "/var/tmp", "/usr/tmp"); -# Remove empty and duplicate entries, which can happen when both configured -# dirs are set to the same path, or when a configured path matches one of -# the built-in defaults -@can_dirs = &unique(grep { $_ } @can_dirs); +# Remove duplicate entries, which can happen when both configured dirs are set +# to the same path, or when a configured path matches one of the built-in +# defaults +@can_dirs = &unique(@can_dirs); # Test each candidate in turn for my $dir (@can_dirs) {