unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jookia <166291@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH] syscalls: Allow non-alphanumeric interface names.
Date: Mon, 1 Feb 2016 21:02:57 +1100	[thread overview]
Message-ID: <56af343e.496dc20a.59980.ffffeac2@mx.google.com> (raw)

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	other threads:[~2016-02-01 10:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-01 10:02 Jookia [this message]
2016-02-03 10:22 ` [PATCH] syscalls: Allow non-alphanumeric interface names Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56af343e.496dc20a.59980.ffffeac2@mx.google.com \
    --to=166291@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).