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)
Fri, Jun 21, 1:19 PM
Unknown Object (File)
Sat, Jun 15, 8:26 PM
Unknown Object (File)
Tue, Jun 11, 3:28 PM
Unknown Object (File)
May 18 2024, 1:43 AM
Unknown Object (File)
May 3 2024, 7:16 PM
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
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

Lint
Lint Skipped
Unit
Tests Skipped

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.