From 1ed2fd33f0d7af48e319bffaa27a5031ed72374c Mon Sep 17 00:00:00 2001 From: Liam Waldron <liamwaldron@everestlinux.org> Date: Mon, 31 Mar 2025 21:13:20 -0400 Subject: [PATCH] fix issues with mkworkspace() --- .vscode/settings.json | 3 +++ src/libglacier.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..082b194 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "makefile.configureOnOpen": false +} \ No newline at end of file diff --git a/src/libglacier.c b/src/libglacier.c index 71139e4..f5a49f7 100644 --- a/src/libglacier.c +++ b/src/libglacier.c @@ -520,7 +520,7 @@ mkworkspace(void) return 0; } else if (ENOENT == errno) { /* infolog("Creating new Glacier workspace..."); */ - if (mkdir(workspace_path, DEFAULT_PERMISSIONS) != 0) { + if (mkdir(workspace_path, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) != 0) { if (LG_VERBOSE == 1) { errlog("in mkworkspace()"); errlog("mkdir() failed to create workspace directory");