fix issues with mkworkspace()
This commit is contained in:
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"makefile.configureOnOpen": false
|
||||||
|
}
|
||||||
@@ -520,7 +520,7 @@ mkworkspace(void)
|
|||||||
return 0;
|
return 0;
|
||||||
} else if (ENOENT == errno) {
|
} else if (ENOENT == errno) {
|
||||||
/* infolog("Creating new Glacier workspace..."); */
|
/* 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) {
|
if (LG_VERBOSE == 1) {
|
||||||
errlog("in mkworkspace()");
|
errlog("in mkworkspace()");
|
||||||
errlog("mkdir() failed to create workspace directory");
|
errlog("mkdir() failed to create workspace directory");
|
||||||
|
|||||||
Reference in New Issue
Block a user