(Due to some misconfiguration) I ended up with _mask set to -v<something>, and /etc/rc.d/jail then failed with expr: illegal option -- v.
Use expr -- so that variable content is never interpreted as an option.
Differential D14535
rc.d/jail: avoid misinterpreting expr arguments emaste on Feb 27 2018, 5:55 PM. Authored by Tags None Referenced Files
Subscribers
Details
(Due to some misconfiguration) I ended up with _mask set to -v<something>, and /etc/rc.d/jail then failed with expr: illegal option -- v. Use expr -- so that variable content is never interpreted as an option.
Diff Detail
|