This fixes interfaces with a dash or other characters being ignored.

* guix/build/syscalls.scm (%interface-line): Replace "[[:alnum:]]" with ".+".
---
 guix/build/syscalls.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm
index a3b68c4..9b79f87 100644
--- a/guix/build/syscalls.scm
+++ b/guix/build/syscalls.scm
@@ -625,7 +625,7 @@ to interfaces that are currently up."
 
 (define %interface-line
   ;; Regexp matching an interface line in Linux's /proc/net/dev.
-  (make-regexp "^[[:blank:]]*([[:alnum:]]+):.*$"))
+  (make-regexp "^[[:blank:]]*(.+):.*$"))
 
 (define (all-network-interface-names)
   "Return all the names of the registered network interfaces, including those
-- 
2.7.0


Reply via email to