[Po4a-commits] "po4a po4a,1.73,1.74 changelog,1.185,1.186"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Mon Apr 16 18:41:13 UTC 2007
Update of /cvsroot/po4a/po4a
In directory alioth:/tmp/cvs-serv24006
Modified Files:
po4a changelog
Log Message:
Make sure the file exists before 'stat'ing it.
Index: po4a
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- po4a 16 Apr 2007 18:39:51 -0000 1.73
+++ po4a 16 Apr 2007 18:41:11 -0000 1.74
@@ -1128,7 +1128,7 @@
my $modtime = (stat $file)[9];
for my $f (@files) {
- if ((stat $f)[9] > $modtime) {
+ if (-e $f and (stat $f)[9] > $modtime) {
$older = 1;
last;
}
Index: changelog
===================================================================
RCS file: /cvsroot/po4a/po4a/changelog,v
retrieving revision 1.185
retrieving revision 1.186
diff -u -d -r1.185 -r1.186
--- changelog 16 Apr 2007 18:39:51 -0000 1.185
+++ changelog 16 Apr 2007 18:41:11 -0000 1.186
@@ -1,5 +1,9 @@
2007-04-16 Nicolas François <nicolas.francois at centraliens.net>
+ * po4a: Make sure the file exists before 'stat'ing it.
+
+2007-04-16 Nicolas François <nicolas.francois at centraliens.net>
+
* po4a: Fix typo in a string.
2007-04-16 Nicolas François <nicolas.francois at centraliens.net>
More information about the Po4a-commits
mailing list