diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-01-12 11:09:05 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-01-12 11:09:05 +0000 |
commit | 0e3a29c270904f3b7be0dabbecd0401488318809 (patch) | |
tree | 713e854fcef841cb6c0b3173873d7107ca727da7 /scripts | |
parent | 5605b82835d762cac910dd640ade13f8c4a3668e (diff) | |
download | upstream-0e3a29c270904f3b7be0dabbecd0401488318809.tar.gz upstream-0e3a29c270904f3b7be0dabbecd0401488318809.tar.bz2 upstream-0e3a29c270904f3b7be0dabbecd0401488318809.zip |
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.
SVN-Revision: 6084
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/timestamp.pl | 5 |
1 files changed, 2 insertions, 3 deletions
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 (<FIND>) { 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; |