1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

network-generator: Add missing umask(0022)

(cherry picked from commit c9d85c22066f690ab09f0298772bee43583b7d2b)
This commit is contained in:
Daan De Meyer 2023-07-10 12:30:35 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent ed9f4ef014
commit 1e39026869

View File

@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include <getopt.h>
#include <sys/stat.h>
#include "build.h"
#include "fd-util.h"
@ -171,6 +172,8 @@ static int run(int argc, char *argv[]) {
log_setup();
umask(0022);
r = parse_argv(argc, argv);
if (r <= 0)
return r;