From 5dbf45896ff69e3049d4f033ccec2776dc57db0f Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 3 Mar 2013 19:21:13 +0100 Subject: [PATCH] hdd_menu: use proper tune2fs call call the my_system with the proper number of parameters instead of relying on specifics of the getopt() used by tune2fs, now that there is no limitation on the number of my_system arguments anymore Signed-off-by: Jacek Jendrzej --- src/gui/hdd_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/hdd_menu.cpp b/src/gui/hdd_menu.cpp index 926cfba64..7c32f3230 100644 --- a/src/gui/hdd_menu.cpp +++ b/src/gui/hdd_menu.cpp @@ -468,7 +468,7 @@ int CHDDFmtExec::exec(CMenuTarget* /*parent*/, const std::string& key) sleep(2); printf("CHDDFmtExec: executing %s %s\n","/sbin/tune2fs -r 0 -c 0 -i 0", src); - my_system(5, "/sbin/tune2fs", "-r 0", "-c 0", "-i 0", src); + my_system(8, "/sbin/tune2fs", "-r", "0", "-c", "0", "-i", "0", src); _remount: progress->hide();