[vhffs-dev] [477] Fixed a bug in path determination when updatedb.pl was launched as ./ updatedb.pl |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
- To: vhffs-dev@xxxxxxxxx
- Subject: [vhffs-dev] [477] Fixed a bug in path determination when updatedb.pl was launched as ./ updatedb.pl
- From: subversion@xxxxxxxxx
- Date: Sat, 17 Feb 2007 23:08:13 +0100
Revision: 477
Author: beuss
Date: 2007-02-17 22:08:12 +0000 (Sat, 17 Feb 2007)
Log Message:
-----------
Fixed a bug in path determination when updatedb.pl was launched as ./updatedb.pl
Modified Paths:
--------------
branches/vhffs_4.1/vhffs-compat/updatedb.pl
Modified: branches/vhffs_4.1/vhffs-compat/updatedb.pl
===================================================================
--- branches/vhffs_4.1/vhffs-compat/updatedb.pl 2007-02-17 13:59:13 UTC (rev 476)
+++ branches/vhffs_4.1/vhffs-compat/updatedb.pl 2007-02-17 22:08:12 UTC (rev 477)
@@ -36,14 +36,14 @@
use File::Basename;
use File::Temp;
use DBI;
-use Cwd;
+use Cwd qw(abs_path getcwd);
use Vhffs::Main;
use IO::File;
use strict;
# get vhffs sources base dir
-my $BASE_DIR = dirname(dirname(getcwd()."/$0"));
+my $BASE_DIR = dirname(dirname(abs_path(getcwd()."/$0")));
my $SQL_DIR = $BASE_DIR.'/vhffs-backend/src/pgsql/';