Index: ocsinventory-client-1.0-RC2-FINAL/ocsinventory-client.pl
===================================================================
--- ocsinventory-client-1.0-RC2-FINAL.orig/ocsinventory-client.pl	2006-02-16 09:51:10.000000000 +0100
+++ ocsinventory-client-1.0-RC2-FINAL/ocsinventory-client.pl	2006-03-03 14:02:05.000000000 +0100
@@ -27,6 +27,7 @@
 my $log_path		= "/var/log/ocsinventory-client/ocsinv.log";
 my $default_server	= "ocsinventory-ng";
 my $install_path	= "/etc/ocsinventory-client";
+my $cache_path		= "/var/cache/ocsinventory-client";
 my $exe_path		= "/usr/sbin";
 my $debug;
 my @bin_directories 	= qw {	/usr/local/sbin/ /sbin/ /usr/sbin/ /bin/ /usr/bin/ 
@@ -86,7 +87,7 @@
 }
 
 #Get last inventory state
-my $last_state = XML::Simple::XMLin($install_path."/last_state", SuppressEmpty => undef, ForceArray => ['hardware', 'inputs', 'controllers', 'memories', 'monitors', 'ports', 'softwares', 'storages', 'drives', 'inputs', 'modems', 'networks', 'printers', 'slots', 'sounds', 'videos', 'bios' ] ) if -r "$install_path/last_state";
+my $last_state = XML::Simple::XMLin($cache_path."/last_state", SuppressEmpty => undef, ForceArray => ['hardware', 'inputs', 'controllers', 'memories', 'monitors', 'ports', 'softwares', 'storages', 'drives', 'inputs', 'modems', 'networks', 'printers', 'slots', 'sounds', 'videos', 'bios' ] ) if -r "$cache_path/last_state";
 #If data are not available
 my %last_state;
 
@@ -1293,7 +1294,7 @@
 sub _save_checksums{
 	$last_state = \%last_state unless $last_state;
 	my $string = XML::Simple::XMLout( $last_state, RootName => 'LAST_STATE' );
-	open LAST_STATE, ">$install_path/last_state" or warn "Cannot save the checksum values (will be synchronized by GLPI!!): $!\n";
+	open LAST_STATE, ">$cache_path/last_state" or warn "Cannot save the checksum values (will be synchronized by GLPI!!): $!\n";
 	print LAST_STATE $string;
 	close LAST_STATE;
 	my $base = $request{'CONTENT'}{'HARDWARE'};
