Page MenuHomeFreeBSD

rc: Disable pathname expansion when calling run_rc_command()
Needs ReviewPublic

Authored by hrs on Jul 3 2024, 9:09 AM.
Tags
Referenced Files
Unknown Object (File)
Oct 7 2024, 6:41 AM
Unknown Object (File)
Oct 6 2024, 6:46 AM
Unknown Object (File)
Oct 5 2024, 10:55 AM
Unknown Object (File)
Oct 3 2024, 2:05 AM
Unknown Object (File)
Oct 2 2024, 6:54 PM
Unknown Object (File)
Sep 23 2024, 4:09 PM
Unknown Object (File)
Sep 21 2024, 5:02 AM
Unknown Object (File)
Sep 18 2024, 7:53 PM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Variables for command-line options like $foo_flags can contain characters
that perform pathname expansions, such as '[', ']', and '*'. They were
passed without escaping, and the matched entries in the working directory
affected the command-line options. This change turns off the expansion
when run_rc_command() is called.

While this changes the current behavior, an invocation of a service
program should not depend on entries in the working directory.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58472
Build 55360: arc lint + arc unit