Re: sysrc bug

Gordon Tetlow via freebsd-security <[email protected]>
Newsgroups gmane.os.freebsd.security.general
Message-ID <[email protected]>
> On May 31, 2021, at 16:07, Roger Marquis <[email protected]> wrote:
> 
> 
>> 
>> Also, changing the root shell is bad for many reasons and I'm not
>> surprised that something doesn't work.
> 
> Surprised this old myth is still being repeated.  Having used various
> root shells in FreeBSD and other Unux/Linux systems for decades I have to
> ask specifically what said reasons are, particularly considering
> /usr/sbin/sysrc starts with "#!/bin/sh" (as does and should every system
> shell script).

It’s likely due to the quoting behavior of newlines passed as the argument when he ran the script, which varies between shell implementations. As I said, I’m not surprised something broke because many utilities are not tested with different shell behaviors.

I also believe if we have a reproducible test case, we should go ahead and fix it.

Gordon
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.