aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-04-09 15:40:23 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2014-04-09 15:40:23 +0300
commitd34e5a25afa0d4e5aad8ac2651d45335889a655d (patch)
tree400c387f8f63a9846b3846844509e763b0d4eb00
parent140dfbf9634e9031246cfc84486b3dd1e876029a (diff)
downloaddnstools-d34e5a25afa0d4e5aad8ac2651d45335889a655d.tar.gz
dnstools-d34e5a25afa0d4e5aad8ac2651d45335889a655d.tar.bz2
vhostcname: Fix dircond handler mode
-rwxr-xr-xvhostcname/vhostcname6
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;
}

Return to:

Send suggestions and report system problems to the System administrator.