guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] syscalls: Allow non-alphanumeric interface names.


From: Jookia
Subject: [PATCH] syscalls: Allow non-alphanumeric interface names.
Date: Mon, 1 Feb 2016 21:02:57 +1100

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

[Prev in Thread] Current Thread [Next in Thread]