mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix to only check for uniqueness
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user