Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
36d21b04
Commit
36d21b04
authored
Apr 11, 2022
by
IKEDA Soji
Browse files
Fix the owner of created config file.
parent
12cb4b17
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/Sympa/CLI/config.pm
View file @
36d21b04
...
...
@@ -88,7 +88,8 @@ sub _run {
}
umask
$umask
;
chown
[
getpwnam
(
Sympa::Constants::
USER
)]
->
[
2
],
[
getgrnam
(
Sympa::Constants::
GROUP
)]
->
[
2
],
$sympa_conf
;
[
getgrnam
(
Sympa::Constants::
GROUP
)]
->
[
2
],
$sympa_conf
if
$UID
==
0
;
print
$ofh
$out
;
close
$ofh
;
...
...
src/lib/Sympa/CLI/config/create.pm
View file @
36d21b04
...
...
@@ -62,6 +62,9 @@ sub _run {
.
"
\n
";
}
umask
$umask
;
chown
[
getpwnam
(
Sympa::Constants::
USER
)]
->
[
2
],
[
getgrnam
(
Sympa::Constants::
GROUP
)]
->
[
2
],
$conf
if
$UID
==
0
;
print
$ofh
Sympa::Tools::Data::
format_config
([
@
Sympa::ConfDef::
params
],
filter
=>
(
$options
->
{
output
}
//
[
qw(minimal)
]));
...
...
Write
Preview
Supports
Markdown
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