[gparted/57-ntfs-resize-results-in-partition-information-warning-on-refresh] Report errors correctly on failure to read NTFS usage (#57)
- From: Mike Fleetwood <mfleetwo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted/57-ntfs-resize-results-in-partition-information-warning-on-refresh] Report errors correctly on failure to read NTFS usage (#57)
- Date: Fri, 24 May 2019 11:54:36 +0000 (UTC)
commit dd8a20ff3247b3065c5f07276aa02751a0e72649
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]