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.)
This commit is contained in:
Ludovic Courtès 2014-09-22 21:12:26 +02:00
parent 077bd18d22
commit 8591fae4cf
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ to interfaces that are currently up."
(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