dracut/modules.d/40network
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
..
dhclient-script.sh network: DCHPv6: set valid_lft and preferred_lft 2014-04-02 09:58:11 +02:00
dhclient.conf removed trailing whitespaces 2011-05-10 11:56:09 +02:00
dhcp-root.sh Rewrite "rootok" and "netroot" logic 2013-09-04 09:49:19 +02:00
ifname-genrules.sh network/ifname-genrules.sh: check for multiple ifname= lines 2012-07-06 12:57:17 +02:00
ifup.sh Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
kill-dhclient.sh 40network/kill-dhclient.sh: kill dhclient silently 2012-03-08 10:58:16 +01:00
module-setup.sh Factor out all the "type -V" commands 2014-02-06 16:45:20 +01:00
net-genrules.sh network: merge setup_net_$netif.ok and net.$netif.did-setup 2014-02-28 12:10:41 +01:00
net-lib.sh Specify strstr tightly, add strglob/strglobin. 2014-04-07 10:49:07 +02:00
netroot.sh Rewrite "rootok" and "netroot" logic 2013-09-04 09:49:19 +02:00
parse-bond.sh network: support multiple bonding interfaces 2013-04-09 10:52:22 +02:00
parse-bridge.sh network: support multiple bonding interfaces 2013-04-09 10:52:22 +02:00
parse-ibft.sh network: move ibft parsing before all other network cmdline parser 2013-08-26 10:18:47 +02:00
parse-ifname.sh network: factor out parse_ifname_opts() for ifname-genrules 2012-07-05 14:33:45 +02:00
parse-ip-opts.sh network: add rd.bootif=0 to ignore BOOTIF 2014-01-17 14:52:01 +01:00
parse-team.sh dracut: add team device support 2012-12-14 09:06:51 +01:00
parse-vlan.sh Fixup script permissions 2013-12-05 15:13:29 +01:00