diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-04-09 15:40:23 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2014-04-09 15:40:23 +0300 |
commit | d34e5a25afa0d4e5aad8ac2651d45335889a655d (patch) | |
tree | 400c387f8f63a9846b3846844509e763b0d4eb00 /vhostcname | |
parent | 140dfbf9634e9031246cfc84486b3dd1e876029a (diff) | |
download | dnstools-d34e5a25afa0d4e5aad8ac2651d45335889a655d.tar.gz dnstools-d34e5a25afa0d4e5aad8ac2651d45335889a655d.tar.bz2 |
vhostcname: Fix dircond handler mode
Diffstat (limited to 'vhostcname')
-rwxr-xr-x | vhostcname/vhostcname | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vhostcname/vhostcname b/vhostcname/vhostcname index 9b6d424..9fcd69c 100755 --- a/vhostcname/vhostcname +++ b/vhostcname/vhostcname @@ -314,10 +314,10 @@ if ($#ARGV == -1) { my $update_dir; if (-d "$confdir/sites-available" && -d "$confdir/sites-enabled") { if ($cwd eq "$confdir/sites-available") { - foreach my $file (glob "$cwd/*") { + foreach my $file (glob "$confdir/sites-enabled/$confpat") { next unless (-l $file); - if (realpath(readlink($file)) eq - "$confdir/sites-enabled/$ENV{'DIRCOND_FILE'}") { + if (realpath(readlink($file)) eq + "$confdir/sites-available/$ENV{'DIRCOND_FILE'}") { $update_dir = "$confdir/sites-enabled"; last; } |