guix/guix
Chris Marusich 341dfe7eda
syscalls: mounts: Fix a matching bug.
On some systems, the columns in /proc/self/mountinfo look like this:

23 28 0:21 / /proc rw,nosuid,nodev,noexec,relatime shared:11 - proc proc rw

Before this change, the mounts procedure was written with the assumption that
the type and source could always be found in columns 8 and 9, respectively.
However, the proc(5) man page explains that there can be zero or more optional
fields starting at column 7 (e.g., "shared:11" above), so this assumption is
false in some situations.

* guix/build/syscalls.scm (mounts): Update the match pattern to use ellipsis
to match zero or more optional fields followed by a single hyphen.  Remove the
trailing ellipsis, since multiple ellipses are not allowed in the same level.
The proc(5) man page indicates that there are no additional columns, so it is
probably OK to match an exact number of columns at the end like this.
2021-03-15 21:22:43 -07:00
..
build syscalls: mounts: Fix a matching bug. 2021-03-15 21:22:43 -07:00
build-system build-system/cargo: Propagate crates across builds. 2021-03-14 19:52:44 +02:00
import import: go: Compute the hash of Git checkouts. 2021-03-10 18:01:48 +01:00
scripts time-machine: Fail when unrecognized option. 2021-03-11 23:19:53 +01:00
store database: Validate #:nar-size and #:time when registering store items. 2021-01-31 21:49:58 +01:00
tests tests: do not hard code HTTP ports 2021-03-06 11:41:48 +01:00
android-repo-download.scm
avahi.scm avahi: Remove poll timeout when possible. 2020-12-20 10:40:57 +01:00
base16.scm
base32.scm
base64.scm
build-system.scm
bzr-download.scm
cache.scm git: Periodically delete least-recently-used cached checkouts. 2021-01-13 16:26:58 +01:00
channels.scm channels: Add the channel branch in sexp->channel. 2021-03-10 16:53:51 +01:00
ci.scm ci: Add missing imports. 2021-01-31 21:49:58 +01:00
colors.scm
combinators.scm
config.scm.in build: Add '--with-channel-commit' and related configure flags. 2021-02-04 09:23:39 +01:00
cpio.scm
cve.scm
cvs-download.scm
d3.v3.js graph: Install JavaScript files. 2021-01-04 23:54:16 +01:00
deprecation.scm
derivations.scm
describe.scm describe: Make sure package-channels always returns a list. 2021-02-25 10:24:11 +01:00
diagnostics.scm
discovery.scm
docker.scm docker: Pass '--hard-dereference' to 'tar' to ensure reproducible builds. 2021-02-08 23:50:35 +01:00
download.scm download: 'url-fetch/tarbomb' and 'url-fetch/zipbomb' refer to native tools. 2021-03-05 12:49:28 +01:00
elf.scm
ftp-client.scm ftp-client: Before 'PASV', try 'EPSV' first for IPv6. 2021-02-15 08:38:00 +08:00
gexp.scm gexp: Honor #:target in 'compiled-modules'. 2021-03-05 12:49:28 +01:00
git-authenticate.scm channels: Consider the current channel commit as authentic. 2021-02-04 09:23:39 +01:00
git-download.scm
git.scm git: Periodically delete least-recently-used cached checkouts. 2021-01-13 16:26:58 +01:00
glob.scm guix: Add globstar support. 2020-12-09 22:25:17 +01:00
gnu-maintenance.scm gnu-maintenance: Autoload (zlib). 2021-03-13 22:51:18 +01:00
gnupg.scm
grafts.scm grafts: Inline 'grafting?' and 'set-grafting'. 2021-02-23 15:24:47 +01:00
graph.js graph: Install JavaScript files. 2021-01-04 23:54:16 +01:00
graph.scm graph: Install JavaScript files. 2021-01-04 23:54:16 +01:00
hg-download.scm
http-client.scm http-client: Accept #:open-connection in http-fetch. 2021-02-22 20:43:10 +00:00
i18n.scm
inferior.scm inferior: Add <inferior> printer. 2021-03-13 22:51:18 +01:00
licenses.scm licenses: Add Zero-Clause BSD License. 2021-03-06 11:41:49 +01:00
lint.scm upstream: Make the 'updaters' parameter optional. 2021-01-07 12:08:41 +01:00
man-db.scm
memoization.scm
modules.scm modules: Recognize #:re-export-and-replace. 2021-01-19 17:45:38 +01:00
monad-repl.scm
monads.scm maint: Require Guile >= 2.2.6. 2020-12-19 23:25:01 +01:00
nar.scm database: Remove #:deduplicate? from 'register-items'. 2020-12-15 17:32:11 +01:00
narinfo.scm guix: Split (guix substitutes) from (guix scripts substitute). 2021-03-05 21:06:03 +00:00
openpgp.scm openpgp: Remove now unnecessary procedure. 2021-03-02 23:12:37 +01:00
packages.scm ci: Remove hydra support. 2021-03-10 08:49:48 +01:00
pki.scm
profiles.scm profiles: 'package->manifest-entry' preserves transformations by default. 2021-03-05 12:49:27 +01:00
profiling.scm
progress.scm status: Do not emit ANSI escapes when stderr is not a tty. 2020-12-18 16:13:39 +01:00
quirks.scm
records.scm
remote.scm
repl.scm repl: Fix exception handling for interpreted code. 2021-01-21 00:14:38 +01:00
scripts.scm guix: scripts: Fix corner cases of hint for option typo. 2021-02-24 23:50:13 +01:00
search-paths.scm
self.scm import: Add Go importer. 2021-03-10 18:01:48 +01:00
serialization.scm serialization: Micro-optimize string literal output in 'write-file-tree'. 2021-03-01 17:45:51 +01:00
sets.scm
ssh.scm ssh: Use 'guix repl' instead of 'guile'. 2020-12-23 16:03:32 +01:00
status.scm status: Do not emit ANSI escapes when stderr is not a tty. 2020-12-18 16:13:39 +01:00
store.scm store: Micro-optimize object cache lookup. 2021-02-23 15:24:49 +01:00
substitutes.scm guix: substitutes: Make progress reporting configurable. 2021-03-09 20:19:33 +00:00
svn-download.scm
swh.scm import, swh: Adjust to Guile-JSON 4.5.x unspecified value handling. 2021-01-21 00:14:38 +01:00
tests.scm Revert "tests: Refer to '%derivation-cache' in the right module." 2021-03-06 11:41:48 +01:00
transformations.scm transformations: Add '--with-latest'. 2021-01-19 17:45:39 +01:00
ui.scm ui: Bug-report URL in '--help' can be translated. 2021-02-24 23:44:10 +01:00
upstream.scm transformations: Add '--with-latest'. 2021-01-19 17:45:39 +01:00
utils.scm utils: Use Guile-zlib for gzip compression and decompression. 2021-03-12 15:59:46 +01:00
workers.scm