Date: Tue, 17 Jun 2025 22:23:08 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 287615] Minor fix to quoting in jail.c Message-ID: <bug-287615-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287615 Bug ID: 287615 Summary: Minor fix to quoting in jail.c Product: Base System Version: 14.3-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsd-bugzilla@umpquanet.com Created attachment 261352 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=261352&action=edit jail.c: Simple patch to quote strings that contain pipe symbol I'm writing a helper script that will allow me to inspect jail.conf files set eval-able strings so my script can examine jail configuration variables. The primary mechanism for this is "jail -e" however there is one quoting deficiency in ./usr.sbin/jail/jail.c. Strings containing a vertical bar or pipe symbol are not quoted, such as: ip4.addr=private|192.168.1.9/24 The attached patch corrects this behaviour. Thank you for all your work on the project! Regards, Jim -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-287615-227>
