Browse Source

installer: Fix wifi menu crash with hidden SSIDs.

This fixes https://issues.guix.gnu.org/issue/35622.

* gnu/installer/connman.scm (<service>): Mention that name may be false.
* gnu/installer/newt/wifi.scm (wifi-services): Filter out wifi services
without name.

Co-authored by: Pierre Neidhardt <mail@ambrevar.xyz>
wip-texlive-importer
Mathieu Othacehe 3 years ago
parent
commit
694cb8dc62
No known key found for this signature in database GPG Key ID: 8354763531769CA6
  1. 2
      gnu/installer/connman.scm
  2. 1
      gnu/installer/newt/wifi.scm

2
gnu/installer/connman.scm

@ -108,7 +108,7 @@
(define-record-type* <service>
service make-service
service?
(name service-name) ; string
(name service-name) ; string or #f
(type service-type) ; string
(path service-path) ; string
(strength service-strength) ; integer

1
gnu/installer/newt/wifi.scm

@ -144,6 +144,7 @@ of <service-item> records present in LISTBOX."
(let ((services (connman-services)))
(filter (lambda (service)
(and (string=? (service-type service) "wifi")
(service-name service)
(not (string-null? (service-name service)))))
services)))

Loading…
Cancel
Save