[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 ]


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/';
 
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/