projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avoid a race condition that might lead to dnsmasq reading an empty resolv.conf (...
[openwrt.git]
/
scripts
/
timestamp.pl
diff --git
a/scripts/timestamp.pl
b/scripts/timestamp.pl
index a3aa50cb0dffe23fbdcbf9f26da58d0328bcbe28..a4c5cae0150822434544dd8412d6db9b5db9ee0a 100755
(executable)
--- 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;