You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Bug #3567: Ensure mkdirRecurse() is correctly wrapped in try block (#3566)
* Based on an application crash output from OMV, if the client is unable to create the required path, the application crashes. Harden all calls to mkdirRecurse() by wrapping in a try block.
Copy file name to clipboardExpand all lines: src/main.d
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -910,11 +910,19 @@ int main(string[] cliArgs) {
910
910
if (!exists(singleDirectoryPath)) {
911
911
// The requested path to use with --single-directory does not exist locally within the configured 'sync_dir'
912
912
addLogEntry("WARNING: The requested path for --single-directory does not exist locally. Creating requested path within "~ runtimeSyncDirectory, ["info", "notify"]);
913
-
// Make the required --single-directory path locally
914
-
mkdirRecurse(singleDirectoryPath);
915
-
// Configure the applicable permissions for the folder
916
-
if (debugLogging) {addLogEntry("Setting directory permissions for: "~ singleDirectoryPath, ["debug"]);}
0 commit comments