X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=scripts%2Ftimestamp.pl;fp=scripts%2Ftimestamp.pl;h=a4c5cae0150822434544dd8412d6db9b5db9ee0a;hb=0e3a29c270904f3b7be0dabbecd0401488318809;hp=a3aa50cb0dffe23fbdcbf9f26da58d0328bcbe28;hpb=5605b82835d762cac910dd640ade13f8c4a3668e;p=openwrt%2F.git diff --git a/scripts/timestamp.pl b/scripts/timestamp.pl index a3aa50cb0d..a4c5cae015 100755 --- a/scripts/timestamp.pl +++ b/scripts/timestamp.pl @@ -17,9 +17,8 @@ sub get_ts($$) { while () { chomp; my $file = $_; - open FILE, "<$file"; - my @stat = stat FILE; - close FILE; + next if -l $file; + my @stat = stat $file; if ($stat[9] > $ts) { $ts = $stat[9]; $fn = $file;