summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--lib/network/connection/wireless.pm4
2 files changed, 4 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index a313236..996b281 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- fix "unescaped left brace" warnings in perl-5.22+.
+
2.22
- draknfs, draksambashare:
o fix handling UTF-8 directories (mga#13354)
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index b56279b..3e28516 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -978,7 +978,7 @@ sub wpa_supplicant_read_conf() {
push @conf, $network;
undef $network;
}
- } elsif (/^\s*network={/) {
+ } elsif (/^\s*network=\{/) {
#- beginning of a new network block
$network = {};
}
@@ -1028,7 +1028,7 @@ sub wpa_supplicant_write_conf {
push @{$network->{entries}}, { comment => $_ };
}
} else {
- if (/^\s*network={/) {
+ if (/^\s*network=\{/) {
#- beginning of a new network block
$network = {};
} else {