Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
ITABase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
ITABase
Commits
683aa0ca
Commit
683aa0ca
authored
Aug 07, 2017
by
Marco Berzborn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set permissions for makeDirectory (mkdir) to allow user and group
read/write/search access
parent
30e7e815
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/ITAFileSystemUtils.cpp
src/ITAFileSystemUtils.cpp
+2
-2
No files found.
src/ITAFileSystemUtils.cpp
View file @
683aa0ca
...
...
@@ -50,8 +50,8 @@ bool isDirectory(const std::string& sPath) {
bool
makeDirectory
(
const
std
::
string
&
sPath
)
{
#if !defined(WIN32) && !defined(PLATFORM_X64)
//
TODO: Mode?
return
mkdir
(
sPath
.
c_str
(),
0
)
==
0
;
//
Set permissions to read/write/search permissions for owner and group, and read/search permissions for others
return
mkdir
(
sPath
.
c_str
(),
S_IRWXU
|
S_IRWXG
|
S_IROTH
|
S_IXOTH
)
==
0
;
#else
return
CreateDirectory
(
sPath
.
c_str
(),
NULL
)
!=
0
;
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment