[Pkg-libvirt-commits] [libguestfs] 24/72: Fix a bug in e2fsck execution code

Hilko Bengen bengen at moszumanska.debian.org
Sun Apr 5 15:19:48 UTC 2015


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

bengen pushed a commit to branch master
in repository libguestfs.

commit 0052d1b3a306e09c03891d163f5099bcdd1c3f35
Author: Nikos Skalkotos <skalkoto at grnet.gr>
Date:   Wed Feb 18 15:59:48 2015 +0200

    Fix a bug in e2fsck execution code
    
    Use commandrvf() instead of commandvf() to execute e2fsck. A non-zero
    exit status does not always indicate a failure.
    
    Signed-off-by: Nikos Skalkotos <skalkoto at grnet.gr>
    (cherry picked from commit 6200abf92efe4db03c87a4cc284470a28531570d)
---
 daemon/ext2.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/daemon/ext2.c b/daemon/ext2.c
index 31fef25..a576983 100644
--- a/daemon/ext2.c
+++ b/daemon/ext2.c
@@ -296,9 +296,9 @@ do_e2fsck (const char *device,
   ADD_ARG (argv, i, device);
   ADD_ARG (argv, i, NULL);
 
-  r = commandvf (NULL, &err,
-                 COMMAND_FLAG_FOLD_STDOUT_ON_STDERR,
-                 argv);
+  r = commandrvf (NULL, &err,
+                  COMMAND_FLAG_FOLD_STDOUT_ON_STDERR,
+                  argv);
   /* 0 = no errors, 1 = errors corrected.
    *
    * >= 4 means uncorrected or other errors.

-- 
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