bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Warn about lack of birth time information only when it's true.


From: James Youngman
Subject: [PATCH] Warn about lack of birth time information only when it's true.
Date: Fri, 3 Jun 2011 10:36:57 +0100

* find/pred.c (pred_newerXY): Issue a warning about the inability
to get the birth time of a file, only if we actually failed to
obtain the birth time of the file.  This is a bugfix; there was a
misplaced semicolon after an if condition, so the immediately
succeeding block qould be executed unconditionally.
---
 ChangeLog   |    9 +++++++++
 find/pred.c |    2 +-
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bfa2c2a..3f810ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-06-03  James Youngman  <address@hidden>
+
+       Warn about lack of birth time information only when it's true.
+       * find/pred.c (pred_newerXY): Issue a warning about the inability
+       to get the birth time of a file, only if we actually failed to
+       obtain the birth time of the file.  This is a bugfix; there was a
+       misplaced semicolon after an if condition, so the immediately
+       succeeding block qould be executed unconditionally.
+
 2011-06-02  James Youngman  <address@hidden>
 
        Remove unnecessary header checks and include guards.
diff --git a/find/pred.c b/find/pred.c
index 3acfe9f..28d56f0 100644
--- a/find/pred.c
+++ b/find/pred.c
@@ -1501,7 +1501,7 @@ pred_newerXY (const char *pathname, struct stat 
*stat_buf, struct predicate *pre
     case XVAL_BIRTHTIME:
       ts = get_stat_birthtime (stat_buf);
       collected = true;
-      if (ts.tv_nsec < 0);
+      if (ts.tv_nsec < 0)
        {
          /* XXX: Cannot determine birth time.  Warn once. */
          error (0, 0, _("WARNING: cannot determine birth time of file %s"),
-- 
1.7.2.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]