Skip to content
Snippets Groups Projects
Commit 8591fae4 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

syscalls: Adjust /proc/net/dev parser for old kernels.

* guix/build/syscalls.scm (%interface-line): Remove whitespace in rest
  pattern.  (There's no extra whitespace after the colon with Linux
  2.6.32.)
parent 077bd18d
No related branches found
No related tags found
Loading
...@@ -295,7 +295,7 @@ (define* (network-interfaces #:optional sock) ...@@ -295,7 +295,7 @@ (define* (network-interfaces #:optional sock)
(define %interface-line (define %interface-line
;; Regexp matching an interface line in Linux's /proc/net/dev. ;; Regexp matching an interface line in Linux's /proc/net/dev.
(make-regexp "^[[:blank:]]*([[:alnum:]]+): .*$")) (make-regexp "^[[:blank:]]*([[:alnum:]]+):.*$"))
(define (all-network-interfaces) (define (all-network-interfaces)
"Return all the registered network interfaces, including those that are not "Return all the registered network interfaces, including those that are not
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment