summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/networkd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/networkd.c b/src/networkd.c
index 4012beb..a1bc504 100644
--- a/src/networkd.c
+++ b/src/networkd.c
@@ -974,6 +974,7 @@ static void
write_wpa_unit(const NetplanNetDefinition* def, const char* rootdir)
{
g_autofree gchar *stdouth = NULL;
+ mode_t orig_umask;
stdouth = systemd_escape(def->id);
@@ -989,8 +990,12 @@ write_wpa_unit(const NetplanNetDefinition* def, const char* rootdir)
if (def->type != NETPLAN_DEF_TYPE_WIFI) {
g_string_append(s, " -Dwired\n");
+ } else {
+ g_string_append(s, " -Dnl80211,wext\n");
}
+ orig_umask = umask(022);
g_string_free_to_file(s, rootdir, path, NULL);
+ umask(orig_umask);
}
static gboolean