[interchange-cvs] interchange - racke modified lib/Vend/SOAP.pm

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Wed May 7 13:24:01 2003


User:      racke
Date:      2003-05-07 17:23:21 GMT
Modified:  lib/Vend SOAP.pm
Log:
change to the catalog directory so that log messages end up
in the correct file etc.

Revision  Changes    Path
2.10      +5 -2      interchange/lib/Vend/SOAP.pm


rev 2.10, prev_rev 2.9
Index: SOAP.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/SOAP.pm,v
retrieving revision 2.9
retrieving revision 2.10
diff -u -r2.9 -r2.10
--- SOAP.pm	3 May 2003 16:41:02 -0000	2.9
+++ SOAP.pm	7 May 2003 17:23:21 -0000	2.10
@@ -1,6 +1,6 @@
 # Vend::SOAP - Handle SOAP connections for Interchange
 #
-# $Id: SOAP.pm,v 2.9 2003/05/03 16:41:02 racke Exp $
+# $Id: SOAP.pm,v 2.10 2003/05/07 17:23:21 racke Exp $
 #
 # Copyright (C) 1996-2002 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -34,7 +34,7 @@
 use strict;
 
 use vars qw($VERSION @ISA $AUTOLOAD);
-$VERSION = substr(q$Revision: 2.9 $, 10);
+$VERSION = substr(q$Revision: 2.10 $, 10);
 @ISA = qw/SOAP::Server/;
 
 my %Allowed_tags;
@@ -353,6 +353,9 @@
 	if($Tmp::Autoloaded++ > 100) {
 		die "must be in endless loop, autoloaded $Tmp::Autoloaded times";
 	}
+
+	chdir $Vend::Cfg->{VendRoot} 
+		or die "Couldn't change to $Vend::Cfg->{VendRoot}: $!\n";
 
 	::open_database();
 	open_soap_session();