FreeBSD src
Go to file
Jessica Clarke 91985bc5ad bsdinstall: Fix issues parsing rc.conf.services on revisit
There are a few issues here, some of which are hiding others. The first
is that we don't use double quotes around the command substitution so
every word in the conf file is treated as a separate argument to eval,
resulting in spaces being used in place of newlines and thus comments in
the file commenting out the rest of the file, not just to the end of
their line. In particular, we insert one comment just before the dumpdev
entry (the final one in the file) and so we never see dumpdev as set,
and thus set a default value of on for the menu.

The second issue is that, for dumpdev, it takes a value of AUTO not YES
when set, but we don't replace this with on when eval'ing, so then end
up giving AUTO to bsddialog which is interpreted the same as off (which
seems to match GPL dialog). Thus handle AUTO like YES otherwise it will
always appear as unchecked on revisit.

The final issue is that our case-insensitive YES/NO (and now AUTO)
replacements have no word boundaries around them so match the middle of
words too. As it happens this doesn't matter in practice at the moment,
but it could in future; currently the only effect is that it rewrites
moused_nondefault_enable to moused_offndefault_enable, but since this
variable is never read, only written based on moused(_enable) this is
harmless, but we should fix it in case a service comes along in future
that does get affected by it.
2022-11-29 03:33:47 +00:00
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github .github: Attempt to fix and increase robustness of macOS action 2022-06-30 21:03:26 +01:00
bin sh: install hard link with same mode as target 2022-11-23 15:10:02 -05:00
cddl dwatch: install hard links with same mode as target 2022-11-23 15:10:33 -05:00
contrib sqlite3: Vendor import of sqlite3 3.40.0 2022-11-28 06:08:46 -08:00
crypto heimdal: Check return code from _hdb_fetch_kvno() 2022-11-26 18:41:52 -08:00
etc sendmail: remove leftovers from mta_start_script and rc.sendmail 2022-11-15 09:10:53 +01:00
gnu gnu diff3: apply patch to committed src, rather than at build time 2022-11-13 21:33:40 -05:00
include include: put includes into -dev packages 2022-11-09 22:20:38 -06:00
kerberos5 kerberos5: retire now-unused MIPS support 2022-11-02 13:16:18 -04:00
lib pam.d: install hard link with same mode as target 2022-11-24 08:14:44 -05:00
libexec flua: chown(2) binding, fix bad copy/paste 2022-11-25 09:05:40 +01:00
release release/oci: add Oracle Cloud image builder 2022-11-27 11:12:02 +00:00
rescue rescue: Link libzutil after libzfs. 2022-10-03 16:10:42 -07:00
sbin pf: drop support for fragment crop|drop-ovl 2022-11-28 20:19:12 +01:00
secure libcrypto padlock.so: Link with -z noexecstack for ld.bfd. 2022-11-22 08:37:04 -08:00
share pf: allow scrub rules without fragment reassemble 2022-11-28 20:19:05 +01:00
stand ofw: Remove old K&R function declaration 2022-11-27 13:34:33 -07:00
sys dpaa: Don't assume the MDIO is on the same fman as the MAC 2022-11-28 17:03:15 -05:00
targets Put OPIE to rest. 2022-10-02 03:37:29 +02:00
tests pf tests: test that reassembly is or is not performed as expected 2022-11-28 20:19:12 +01:00
tools pkgbase: report errors via metalog reader exit status 2022-11-25 09:13:31 -05:00
usr.bin systat: Fix a bunch of use after frees in fetch_ifstat(). 2022-11-22 11:11:42 -08:00
usr.sbin bsdinstall: Fix issues parsing rc.conf.services on revisit 2022-11-29 03:33:47 +00:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml Cirrus-CI: move QEMU pkg installation to test script 2022-09-07 13:32:12 -04:00
.clang-format clang-format: Add bitset loop macros 2021-09-21 12:08:01 -04:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore gitignore: whack dead architectures 2022-11-23 01:18:03 +00:00
COPYRIGHT Welcome 2022, update copyrights. 2022-01-01 09:49:49 -07:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS Remove myself from bhyve maintenance; ENOTIME. 2021-11-19 07:09:30 +10:00
Makefile Makefile: replace mergemaster references with etcupdate 2022-10-06 20:19:16 +02:00
Makefile.inc1 Retire CLANG_IS_CC option 2022-11-21 14:56:13 -05:00
Makefile.libcompat libcompat: avoid installing include files twice 2022-11-16 19:15:20 -05:00
Makefile.sys.inc AUTO_OBJ: For all top-level targets enforce using an OBJDIR. 2017-12-05 21:29:47 +00:00
ObsoleteFiles.inc man9: remove vm_map_unwire from ObsoleteFiles.inc 2022-11-19 14:00:58 +00:00
README.md README.md: link to the list of supported platforms 2022-11-01 12:20:55 -03:00
RELNOTES RELNOTE: Document the removal of mta_start_script and othermta 2022-11-14 09:12:33 +01:00
UPDATING pf: drop support for fragment crop|drop-ovl 2022-11-28 20:19:12 +01:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.