Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai3
tools
replds
Commits
97ba518d
Commit
97ba518d
authored
Jun 08, 2019
by
ale
Browse files
Relax default permissions of created directories
Fixes issue
#1
.
parent
1e728c56
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
97ba518d
...
...
@@ -131,3 +131,6 @@ can be used to set up multiple replds instances. For an instance named
will create the
*replds-foo*
user and group. Add users that need to
read the repository files to that group. The configuration will be
read from
*/etc/replds/foo.yml*
.
Note that files created by the daemon will be world-readable by
default. Set the process umask if you wish to restrict this further.
fs.go
View file @
97ba518d
...
...
@@ -55,7 +55,7 @@ func (f *FS) setNode(node Node) error {
// Create parent directory if it does not exist.
dir
:=
filepath
.
Dir
(
path
)
if
_
,
err
:=
os
.
Stat
(
dir
);
os
.
IsNotExist
(
err
)
{
if
err
=
os
.
MkdirAll
(
dir
,
07
00
);
err
!=
nil
{
if
err
=
os
.
MkdirAll
(
dir
,
07
55
);
err
!=
nil
{
return
err
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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