aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-01-12 11:09:05 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-01-12 11:09:05 +0000
commitb2e87f2906d23b27b15f002ab41e7650dec6962f (patch)
tree025d39afe858e1a8d8ae6c11cbab3ae31f9effd2 /scripts
parent916382168371178c24cd4b9550b200f940496131 (diff)
downloadupstream-b2e87f2906d23b27b15f002ab41e7650dec6962f.tar.gz
upstream-b2e87f2906d23b27b15f002ab41e7650dec6962f.tar.bz2
upstream-b2e87f2906d23b27b15f002ab41e7650dec6962f.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. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6084 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/timestamp.pl5
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;