* [PATCH] syscalls: Allow non-alphanumeric interface names.
@ 2016-02-01 10:02 Jookia
2016-02-03 10:22 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Jookia @ 2016-02-01 10:02 UTC (permalink / raw)
To: guix-devel
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] syscalls: Allow non-alphanumeric interface names.
2016-02-01 10:02 [PATCH] syscalls: Allow non-alphanumeric interface names Jookia
@ 2016-02-03 10:22 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2016-02-03 10:22 UTC (permalink / raw)
To: Jookia; +Cc: guix-devel
Jookia <166291@gmail.com> skribis:
> This fixes interfaces with a dash or other characters being ignored.
>
> * guix/build/syscalls.scm (%interface-line): Replace "[[:alnum:]]" with ".+".
I applied it but using [[:graph:]] instead of ‘.’. Thanks!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-03 10:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-01 10:02 [PATCH] syscalls: Allow non-alphanumeric interface names Jookia
2016-02-03 10:22 ` Ludovic Courtès
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).