Page MenuHomeFreeBSD

rc.d/jail: avoid misinterpreting expr arguments
ClosedPublic

Authored by emaste on Feb 27 2018, 5:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 7 2024, 8:43 PM
Unknown Object (File)
Jan 5 2024, 3:36 AM
Unknown Object (File)
Dec 23 2023, 12:14 PM
Unknown Object (File)
Dec 20 2023, 4:04 AM
Unknown Object (File)
Oct 22 2023, 5:24 PM
Unknown Object (File)
Jun 28 2023, 5:26 AM
Unknown Object (File)
Jun 28 2023, 5:25 AM
Unknown Object (File)
Jun 28 2023, 5:25 AM
Subscribers

Details

Summary

(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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Feb 28 2018, 5:06 PM
This revision was automatically updated to reflect the committed changes.