From 4e36ecc6f0d6294a1ee24d62b8fa008d783d87b7 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Tue, 7 Aug 2012 20:25:13 +0000 Subject: [PATCH] catch sort file stats git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1110 2a923420-c742-0410-a762-8d5b09965624 --- var/mongoose/cgi-bin/browse.jim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/var/mongoose/cgi-bin/browse.jim b/var/mongoose/cgi-bin/browse.jim index 5aaffc9..5bf6479 100755 --- a/var/mongoose/cgi-bin/browse.jim +++ b/var/mongoose/cgi-bin/browse.jim @@ -300,9 +300,9 @@ proc s_time {a b} { return 0 } - file stat $a l + if {[catch {file stat $a l}]} { return 0} set at $l(ctime) - file stat $b l + if {[catch {file stat $b l}]} { return 0} set bt $l(ctime) if {$at < $bt} { return -1 }