dracut/modules.d/95nfs
Chapman Flack 2c19a5fa78 Specify strstr tightly, add strglob/strglobin.
By convention, strstr should be a literal string match. Previously, it
would match as a glob pattern. Some code used that, so add new
functions strglob and strglobin to do what that code expects, and
specify them tightly too. strglob tests whether the glob pattern
matches the entire string (the name strglob is also used in the yorick
language, and that's what it does there), while strglobin tests whether
the glob pattern matches anywhere in the string.

Also tightens str_starts, str_ends, and str_replace to deal with
literal strings only. In a quick grep I did not find code that depended
on these functions matching globs.

Changes the call sites where strstr was used with glob patterns to use
strglobin or strglob as the intention seemed to be (or, in one case,
strstr with the * removed as it did not affect the result anyway).
2014-04-07 10:49:07 +02:00
..
module-setup.sh Factor out all the "type -V" commands 2014-02-06 16:45:20 +01:00
nfs-lib.sh Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
nfs-start-rpc.sh nfs/nfs-start-rpc.sh: prevent mount error, if sunrpc kernel module is not in the initramfs 2012-11-22 12:29:43 +01:00
nfsroot-cleanup.sh nfs/nfsroot-cleanup.sh: silently try to umount rpc_pipefs 2013-09-10 10:50:23 +02:00
nfsroot.sh nfs/nfsroot: symlink /dev/null to /dev/nfs, as a marker for root=/dev/nfs 2014-02-05 13:06:29 +01:00
parse-nfsroot.sh Rewrite "rootok" and "netroot" logic 2013-09-04 09:49:19 +02:00