From 2a15d00c6b7463c0c0aba9efcafd153ecc09f589 Mon Sep 17 00:00:00 2001 From: fidian Date: Mon, 16 Oct 2000 15:44:19 +0000 Subject: [PATCH] When two or more installations of SquirrelMail use symbolic links to the plugins directory, you can configure them separately and correctly. Removed chdir() call in conf.pl. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@799 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- config/conf.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/conf.pl b/config/conf.pl index 833bdfd2..14f942bf 100755 --- a/config/conf.pl +++ b/config/conf.pl @@ -348,9 +348,9 @@ while (($command ne "q") && ($command ne "Q")) { @files = readdir(DIR); $pos=0; @unused_plugins = (); - chdir ("../plugins"); for ($i=0; $i <= $#files; $i++) { - if ( -d $files[$i] && $files[$i] !~ /^\./ && $files[$i] ne "CVS") { + if ( -d "../plugins/" . $files[$i]" && + $files[$i] !~ /^\./ && $files[$i] ne "CVS") { $match = 0; for ($k=0; $k<=$#plugins; $k++) { if ($plugins[$k] eq $files[$i]) { @@ -363,7 +363,6 @@ while (($command ne "q") && ($command ne "Q")) { } } } - chdir ("../config"); for ($i=0; $i<=$#unused_plugins; $i++) { $num = $num + 1; -- 2.25.1