From a220b262dbeacb80d86af30d04d9f952616739d3 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 3 Feb 2016 11:18:57 +0100 Subject: 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:]]. --- guix/build/syscalls.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'guix') 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 +;;; Copyright © 2014, 2015, 2016 Ludovic Courtès ;;; Copyright © 2015 David Thompson ;;; ;;; This file is part of GNU Guix. @@ -625,7 +625,7 @@ (define* (network-interface-names #:optional sock) (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 -- cgit v1.2.3