Re: sysrc bug
Fas Xmut via freebsd-security <[email protected]>
| Newsgroups | gmane.os.freebsd.security.general |
|---|---|
| Message-ID | <u3JdTX8lWJSDUQ_kGBagZgc_Bht4CfBODvCj_N_z7Bh1i83bhtFZQ5gCeuZB66AqsVtBL9jn1z0BYjS0WveYlbyraNqwzgmmL-8vjBv15cQ=@protonmail.com> |
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Tuesday, June 1, 2021 9:22 PM, Miklós Quartus via freebsd-security <[email protected]> wrote: > On 6/1/21 5:54 AM, Gordon Tetlow via freebsd-security wrote: > > > 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 > > I have Bash shell in my root terminal (did not change the default shell, > just type 'bash -l' from the default csh) and I could not reproduce this > error on 13.0-RELEASE . The rc.conf remains fine showing just the > expected changes. > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Regards, > Miklós > GPG fingerprint: 3C4B 1364 A379 7366 7FED 260A 2208 F2CE 3FCE A0D3 I think I didnt express clearly. You have to do two commands to reproduce it: First: sysrc something_enable="NO" Then: sysrc something_enable="YES " (Suppose you forget to type " at the end and just type enter, so I type " at the following line) --- _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-security To unsubscribe, send any mail to "[email protected]"