~ruther/guix-local

8591fae4cf34ac5abcf85bf0cee0225d6c472e32 — Ludovic Courtès 11 years ago 077bd18
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.)
1 files changed, 1 insertions(+), 1 deletions(-)

M guix/build/syscalls.scm
M guix/build/syscalls.scm => guix/build/syscalls.scm +1 -1
@@ 295,7 295,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:]]*([[:alnum:]]+):.*$"))

(define (all-network-interfaces)
  "Return all the registered network interfaces, including those that are not