Browse Source

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.)
gn-latest-20200428
Ludovic Courtès 7 years ago
parent
commit
8591fae4cf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      guix/build/syscalls.scm

+ 1
- 1
guix/build/syscalls.scm View File

@ -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


Loading…
Cancel
Save