From f8c85545530d5e71f0b99377d7186eff73a27b89 Mon Sep 17 00:00:00 2001 From: nbd Date: Fri, 12 Jan 2007 11:09:05 +0000 Subject: Fix the annoying base-files autorebuild bug. When checking file mtimes in directories, timestamp.pl was following symlinks. This broke on base-files, because there are symlinks to /tmp and to /proc/mounts in the build directory. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6084 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- scripts/timestamp.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts/timestamp.pl') diff --git a/scripts/timestamp.pl b/scripts/timestamp.pl index a3aa50cb0..a4c5cae01 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; -- cgit v1.2.3