From 97cb0248f8f9ac53b98212714f5cc18d4cb5a8d6 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 22 Nov 2013 12:44:05 +0100 Subject: [PATCH] - hdd_menu: create destination before mount --- src/gui/hdd_menu.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/hdd_menu.cpp b/src/gui/hdd_menu.cpp index beeeda119..5e5904c1f 100644 --- a/src/gui/hdd_menu.cpp +++ b/src/gui/hdd_menu.cpp @@ -478,9 +478,11 @@ _remount: switch(g_settings.hdd_fs) { case 0: + safe_mkdir(dst); res = mount(src, dst, "ext3", 0, NULL); break; case 1: + safe_mkdir(dst); res = mount(src, dst, "reiserfs", 0, NULL); break; default: @@ -602,9 +604,11 @@ printf("CHDDChkExec: key %s\n", key.c_str()); ret1: switch(g_settings.hdd_fs) { case 0: + safe_mkdir(dst); res = mount(src, dst, "ext3", 0, NULL); break; case 1: + safe_mkdir(dst); res = mount(src, dst, "reiserfs", 0, NULL); break; default: