[gparted/57-ntfs-resize-results-in-partition-information-warning-on-refresh: 8/9] Report errors correctly on failure to read NTFS usage (#57)



commit fbcf4b56bbd6d6c83337a0e0496b8acc5bc94859
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Fri May 24 12:29:37 2019 +0100

    Report errors correctly on failure to read NTFS usage (#57)
    
    GParted uses ntfsinfo to read the NTFS file system usage.  However when
    ntfsinfo fails with a non-zero exit status GParted reports stdout twice,
    rather than stdout and stderr.  Correct this.
    
    Closes #57 - NTFS Resize results in Partition Information Warning on
                 Refresh

 src/ntfs.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ntfs.cc b/src/ntfs.cc
index 844a008e..e8dc4bc5 100644
--- a/src/ntfs.cc
+++ b/src/ntfs.cc
@@ -112,7 +112,7 @@ void ntfs::set_used_sectors( Partition & partition )
                if (! output.empty())
                        partition.push_back_message(output);
                if (! error.empty())
-                       partition.push_back_message(output);
+                       partition.push_back_message(error);
                return;
        }
 


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