guix-commits
[Top][All Lists]
Advanced

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

02/02: syscalls: 'all-network-interface-names' accepts non-alphanumeric


From: Ludovic Courtès
Subject: 02/02: syscalls: 'all-network-interface-names' accepts non-alphanumeric characters.
Date: Wed, 03 Feb 2016 10:23:32 +0000

civodul pushed a commit to branch master
in repository guix.

commit a220b262dbeacb80d86af30d04d9f952616739d3
Author: Ludovic Courtès <address@hidden>
Date:   Wed Feb 3 11:18:57 2016 +0100

    syscalls: 'all-network-interface-names' accepts non-alphanumeric characters.
    
    This fixes interfaces with a dash or other characters being ignored.
    Suggested by Jookia <address@hidden>.
    
    * guix/build/syscalls.scm (%interface-line): Use [[:graph:]] instead
    of [[:alnum:]].
---
 guix/build/syscalls.scm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/guix/build/syscalls.scm b/guix/build/syscalls.scm
index a3b68c4..ea68b22 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 <address@hidden>
+;;; Copyright © 2014, 2015, 2016 Ludovic Courtès <address@hidden>
 ;;; Copyright © 2015 David Thompson <address@hidden>
 ;;;
 ;;; 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



reply via email to

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