--- rat/lonuserstate.pm 2012/11/11 22:26:49 1.144 +++ rat/lonuserstate.pm 2013/05/06 18:08:39 1.145 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Construct and maintain state and binary representation of course for user # -# $Id: lonuserstate.pm,v 1.144 2012/11/11 22:26:49 raeburn Exp $ +# $Id: lonuserstate.pm,v 1.145 2013/05/06 18:08:39 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1431,7 +1431,7 @@ sub unlink_tmpfiles { my ($fn) = @_; my $file_dir = dirname($fn); - if ($fn eq LONCAPA::tempdir()) { + if ("$file_dir/" eq LONCAPA::tempdir()) { my @files = qw (.db _symb.db .state _parms.db); foreach my $file (@files) { if (-e $fn.$file) {