diff -ur squeezeboxserver-7.6.1-33110-orig//scanner.pl squeezeboxserver-7.6.1-33110/scanner.pl --- squeezeboxserver-7.6.1-33110-orig//scanner.pl 2011-08-15 15:58:18.000000000 +0200 +++ squeezeboxserver-7.6.1-33110/scanner.pl 2011-09-19 00:20:22.000000000 +0200 @@ -101,7 +101,7 @@ sub main { our ($rescan, $playlists, $wipe, $force, $cleanup, $prefsFile, $priority); - our ($quiet, $dbtype, $logfile, $logdir, $logconf, $debug, $help, $nodebuglog, $noinfolog, $nostatistics); + our ($quiet, $dbtype, $logfile, $logdir, $logconf, $debug, $help, $nodebuglog, $noinfolog, $nostatistics, $tmpdir); our $LogTimestamp = 1; @@ -133,6 +133,7 @@ 'dbtype=s' => \$dbtype, 'LogTimestamp!'=> \$LogTimestamp, 'help' => \$help, + 'tmpdir=s', => \$tmpdir, ); save_pid_file(); @@ -148,6 +149,9 @@ eval "use $sqlHelperClass"; die $@ if $@; } + + # set TMPDIR environment for SQLite + $ENV{TMPDIR} = $tmpdir if ($tmpdir ne ''); # Start a fresh scanner.log on every scan if ( my $file = Slim::Utils::Log->scannerLogFile() ) { Only in squeezeboxserver-7.6.1-33110: scanner.pl~ diff -ur squeezeboxserver-7.6.1-33110-orig//Slim/Music/Import.pm squeezeboxserver-7.6.1-33110/Slim/Music/Import.pm --- squeezeboxserver-7.6.1-33110-orig//Slim/Music/Import.pm 2011-07-25 19:07:31.000000000 +0200 +++ squeezeboxserver-7.6.1-33110/Slim/Music/Import.pm 2011-09-19 00:20:42.000000000 +0200 @@ -142,6 +142,9 @@ unshift @scanArgs, $command; $command = $Config{'perlpath'}; } + + # pass $ENV{TMPDIR} to scanner.pl process (lost on exec() if we dropped privileges) + push(@scanArgs, '--tmpdir', $ENV{TMPDIR}) if ($ENV{TMPDIR}); # Pass debug flags to scanner my $debugArgs = ''; Only in squeezeboxserver-7.6.1-33110/Slim/Music: Import.pm~