aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-02-03 11:18:57 +0100
committerLudovic Courtès <ludo@gnu.org>2016-02-03 11:21:11 +0100
commita220b262dbeacb80d86af30d04d9f952616739d3 (patch)
treec4985b49dba26a38d5bb7189fdb6f38bad6d53e3
parent2a5f0db4c45679cac6a747a48993fe73982cadca (diff)
downloadpatches-a220b262dbeacb80d86af30d04d9f952616739d3.tar
patches-a220b262dbeacb80d86af30d04d9f952616739d3.tar.gz
syscalls: 'all-network-interface-names' accepts non-alphanumeric characters.
This fixes interfaces with a dash or other characters being ignored. Suggested by Jookia <166291@gmail.com>. * guix/build/syscalls.scm (%interface-line): Use [[:graph:]] instead of [[:alnum:]].
-rw-r--r--guix/build/syscalls.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm
index a3b68c4537..ea68b22bb7 100644
--- a/guix/build/syscalls.scm
+++ b/guix/build/syscalls.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015 David Thompson <davet@gnu.org>
;;;
;;; This file is part of GNU Guix.
@@ -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:]]*([[:graph:]]+):.*$"))
(define (all-network-interface-names)
"Return all the names of the registered network interfaces, including those