Bug 277893 - rc_subr setting of variables breaks if rc name variable contains minus sign
Summary: rc_subr setting of variables breaks if rc name variable contains minus sign
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 13.3-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-rc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-22 16:00 UTC by Andrew Walker
Modified: 2024-03-23 02:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Walker 2024-03-22 16:00:12 UTC
If the name variable for an rc script contains a minus sign, rc_subr will basically corrupt variables related to the script. Was observed because rc_subr was attempting to run "umask -kinit" for a script with name "ix-kinit" rather than just "umask". This may indicate further undiagnosed problems with handling edge-cases with handling of rc script name variables.