[Pkg-libvirt-commits] [libguestfs] 15/40: diff: flatten also atime nanoseconds

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 3 14:49:12 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag debian/1%1.27.57-1
in repository libguestfs.

commit cbb54a38493b8ee8b1c7db948f2030f014bfc21e
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Mon Sep 29 11:18:56 2014 +0200

    diff: flatten also atime nanoseconds
    
    When not considering atime changes, flatten also the nanoseconds.
    
    Followup of commit 8664337cc39c8575ccb60abb8c6e30f92828ea51.
---
 diff/diff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diff/diff.c b/diff/diff.c
index af4e179..f4b25e9 100644
--- a/diff/diff.c
+++ b/diff/diff.c
@@ -488,7 +488,7 @@ visit_entry (const char *dir, const char *name,
 
   /* If --atime option was NOT passed, flatten the atime field. */
   if (!atime)
-    stat->st_atime_sec = 0;
+    stat->st_atime_sec = stat->st_atime_nsec = 0;
 
   /* If --dir-links option was NOT passed, flatten nlink field in
    * directories.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list