From 77ef56714de06673d62b4acf0e2fc8189824cbfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Tue, 27 Apr 2021 00:37:57 +0200 Subject: [PATCH] iwd: Don't add comments about PSK passphrase to config files g_key_file_set_comment() has slightly weird API that will fail to set a comment if it doesn't find the group. This is the case here since we haven't set any strings under the [Security] group yet. Fixing this is kind of ugly, so for now just don't add that comment in the case where we don't have the [Security] group. --- src/core/devices/wifi/nm-wifi-utils.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/core/devices/wifi/nm-wifi-utils.c b/src/core/devices/wifi/nm-wifi-utils.c index 5536aa4f08..d9cf5df20b 100644 --- a/src/core/devices/wifi/nm-wifi-utils.c +++ b/src/core/devices/wifi/nm-wifi-utils.c @@ -1010,11 +1010,6 @@ psk_setting_to_iwd_config(GKeyFile *file, NMSettingWirelessSecurity *s_wsec, GEr const char * key_mgmt = nm_setting_wireless_security_get_key_mgmt(s_wsec); if (!psk || NM_FLAGS_ANY(psk_flags, SECRETS_DONT_STORE_FLAGS)) { - g_key_file_set_comment(file, - "Security", - NULL, - "The passphrase is to be queried through the agent", - NULL); if (NM_FLAGS_ANY(psk_flags, SECRETS_DONT_STORE_FLAGS)) { nm_log_info( LOGD_WIFI,