[Bug 277893] rc_subr setting of variables breaks if rc name variable contains minus sign

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 22 Mar 2024 16:00:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277893

            Bug ID: 277893
           Summary: rc_subr setting of variables breaks if rc name
                    variable contains minus sign
           Product: Base System
           Version: 13.3-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: awalker@ixsystems.com

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.