Re: git: 4deb9760a9d8 - main - rc: Disable pathname expansion when calling run_rc_command()
- Reply: Gleb Smirnoff : "Re: git: 4deb9760a9d8 - main - rc: Disable pathname expansion when calling run_rc_command()"
- In reply to: Mark Johnston : "Re: git: 4deb9760a9d8 - main - rc: Disable pathname expansion when calling run_rc_command()"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 27 Jun 2025 18:56:23 UTC
On Wed 18 Jun 10:13, Mark Johnston wrote: > On Thu, Jun 12, 2025 at 06:20:26PM +0000, Hiroki Sato wrote: > > The branch main has been updated by hrs: > > > > URL: https://cgit.FreeBSD.org/src/commit/?id=4deb9760a9d84d5861ee45162ffebe83f13503b8 > > > > commit 4deb9760a9d84d5861ee45162ffebe83f13503b8 > > Author: Hiroki Sato <hrs@FreeBSD.org> > > AuthorDate: 2025-06-12 18:19:32 +0000 > > Commit: Hiroki Sato <hrs@FreeBSD.org> > > CommitDate: 2025-06-12 18:19:32 +0000 > > > > rc: Disable pathname expansion when calling run_rc_command() > > > > 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. > > This also turns off globbing for /etc/rc.local, which broke one of my > scripts. Was that intentional? If so, we should really document it in > RELNOTES at the very least. This broke nuageinit which rely on globbing to in nuageinit_start, that this change also broke. So many downstream CI are now broken, due to this change. Best regards, Bapt