[gparted] Quote mount point in Data Rescue dialog (#782681)
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Quote mount point in Data Rescue dialog (#782681)
- Date: Sun, 21 May 2017 16:03:08 +0000 (UTC)
commit 6798c271c76a128f356a1806772224d314381b1b
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Fri May 19 20:00:50 2017 +0100
Quote mount point in Data Rescue dialog (#782681)
As before always quote use of mount points in command lines.
Bug 782681 - btrfs partitions mounted with whitespace cannot be resized
src/Dialog_Rescue_Data.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/Dialog_Rescue_Data.cc b/src/Dialog_Rescue_Data.cc
index ac53020..de075f5 100644
--- a/src/Dialog_Rescue_Data.cc
+++ b/src/Dialog_Rescue_Data.cc
@@ -183,7 +183,7 @@ void Dialog_Rescue_Data::on_view_clicked(int nPart)
Glib::ustring mountPoint=tmpDir;
Glib::ustring commandLine= "mount -o ro,loop,offset="+Utils::num_to_str(initOffset)
- +",sizelimit="+Utils::num_to_str(totalSize)+" "+this->device_path+" "+mountPoint;
+ +",sizelimit="+Utils::num_to_str(totalSize)+" "+this->device_path+" \""+mountPoint+"\"";
int mountResult=Utils::execute_command(commandLine);
@@ -279,7 +279,7 @@ void Dialog_Rescue_Data::check_overlaps(int nPart)
{
Glib::ustring mountP=this->device->partitions[i].get_mountpoint();
- Glib::ustring commandUmount= "umount "+mountP;
+ Glib::ustring commandUmount = "umount \"" + mountP + "\"";
Utils::execute_command(commandUmount);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]