mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +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
|
# Common fallbacks
|
||||||
push(@can_dirs, "/dev/shm", "/tmp", "/var/tmp", "/usr/tmp");
|
push(@can_dirs, "/dev/shm", "/tmp", "/var/tmp", "/usr/tmp");
|
||||||
|
|
||||||
# Remove empty and duplicate entries, which can happen when both configured
|
# Remove duplicate entries, which can happen when both configured dirs are set
|
||||||
# dirs are set to the same path, or when a configured path matches one of
|
# to the same path, or when a configured path matches one of the built-in
|
||||||
# the built-in defaults
|
# defaults
|
||||||
@can_dirs = &unique(grep { $_ } @can_dirs);
|
@can_dirs = &unique(@can_dirs);
|
||||||
|
|
||||||
# Test each candidate in turn
|
# Test each candidate in turn
|
||||||
for my $dir (@can_dirs) {
|
for my $dir (@can_dirs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user