summaryrefslogtreecommitdiffstats
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
* iconvctl(3): remove superfluous NULL pointer testsvangyzen2016-05-141-0/+2
| | | | | | | | | | | | | | | convname and dst are guaranteed to be non-NULL by iconv_open(3). src is an array. Remove these tests for NULL pointers. While I'm here, eliminate a strlcpy with a correct but suspicious-looking calculation for the third parameter (i.e. not a simple sizeof). Compare the strings in-place instead of copying. Found by: bdrewery Found by: Coverity CID: 1130050, 1130056 MFC after: 3 days Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D6338
* MFV r299425:mm2016-05-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update libarchive to 3.2.0 New features: - new bsdcat command-line utility - LZ4 compression (in src only via external utility from ports) - Warc format support - 'Raw' format writer - Zip: Support archives >4GB, entries >4GB - Zip: Support encrypting and decrypting entries - Zip: Support experimental streaming extension - Identify encrypted entries in several formats - New --clear-nochange-flags option to bsdtar tries to remove noschg and similar flags before deleting files - New --ignore-zeros option to bsdtar to handle concatenated tar archives - Use multi-threaded LZMA decompression if liblzma supports it - Expose version info for libraries used by libarchive Patched files (fixed compiler warnings): contrib/libarchive/cat/bsdcat.c (vendor PR #702) contrib/libarchive/cat/bsdcat.h (vendor PR #702) contrib/libarchive/libarchive/archive_read_support_format_mtree.c (PR #701) contrib/libarchive/libarchive_fe/err.c (vendor PR #703) MFC after: 1 month Relnotes: yes
* Capitalize "LDAP" in the description field of the _ypldap entry.bcr2016-05-101-1/+1
| | | | | | Reviewed by: bapt MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D5267
* Refactor the root mount hold code and add the wait to etc/rc.d/fsck.trasz2016-05-103-28/+48
| | | | | | | | | | | This fixes mounting (non-root) USB drives on boot with fsck enabled (with non-zero 'Pass#' field in fstab(5)). Reported by: Graham Menhennitt <graham at menhennitt.com.au> Reviewed by: jilles@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D6221
* install: Add some tests.jilles2016-05-081-0/+2
|
* Make "-S" a default option for mountd.rmacklem2016-05-081-1/+1
| | | | | | | | | | | | After a discussion on freebsd-fs@ there seemed to be a consensus that the "-S" option for mountd should become the default. Since the only known issue w.r.t. using "-S" was fixed by r299201, this commit adds "-S" to the default mountd_flags. Discussed on: freebsd-fs PR: 9619, 131342, 206855 MFC after: 2 weeks Relnotes: yes
* Only install etc/rc.d/{rfcomm_pppd_server,sdpd} if MK_BLUETOOTH != nongie2016-05-061-2/+2
| | | | | | | These are bluetooth specific services MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Improve performance and functionality of the bitstring(3) apiasomers2016-05-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two new functions are provided, bit_ffs_at() and bit_ffc_at(), which allow for efficient searching of set or cleared bits starting from any bit offset within the bit string. Performance is improved by operating on longs instead of bytes and using ffsl() for searches within a long. ffsl() is a compiler builtin in both clang and gcc for most architectures, converting what was a brute force while loop search into a couple of instructions. All of the bitstring(3) API continues to be contained in the header file. Some of the functions are large enough that perhaps they should be uninlined and moved to a library, but that is beyond the scope of this commit. sys/sys/bitstring.h: Convert the majority of the existing bit string implementation from macros to inline functions. Properly protect the implementation from inadvertant macro expansion when included in a user's program by prefixing all private macros/functions and local variables with '_'. Add bit_ffs_at() and bit_ffc_at(). Implement bit_ffs() and bit_ffc() in terms of their "at" counterparts. Provide a kernel implementation of bit_alloc(), making the full API usable in the kernel. Improve code documenation. share/man/man3/bitstring.3: Add pre-exisiting API bit_ffc() to the synopsis. Document new APIs. Document the initialization state of the bit strings allocated/declared by bit_alloc() and bit_decl(). Correct documentation for bitstr_size(). The original code comments indicate the size is in bytes, not "elements of bitstr_t". The new implementation follows this lead. Only hastd assumed "elements" rather than bytes and it has been corrected. etc/mtree/BSD.tests.dist: tests/sys/Makefile: tests/sys/sys/Makefile: tests/sys/sys/bitstring.c: Add tests for all existing and new functionality. include/bitstring.h Include all headers needed by sys/bitstring.h lib/libbluetooth/bluetooth.h: usr.sbin/bluetooth/hccontrol/le.c: Include bitstring.h instead of sys/bitstring.h. sbin/hastd/activemap.c: Correct usage of bitstr_size(). sys/dev/xen/blkback/blkback.c Use new bit_alloc. sys/kern/subr_unit.c: Remove hard-coded assumption that sizeof(bitstr_t) is 1. Get rid of unrb.busy, which caches the number of bits set in unrb.map. When INVARIANTS are disabled, nothing needs to know that information. callapse_unr can be adapted to use bit_ffs and bit_ffc instead. Eliminating unrb.busy saves memory, simplifies the code, and provides a slight speedup when INVARIANTS are disabled. sys/net/flowtable.c: Use the new kernel implementation of bit-alloc, instead of hacking the old libc-dependent macro. sys/sys/param.h Update __FreeBSD_version to indicate availability of new API Submitted by: gibbs, asomers Reviewed by: gibbs, ngie MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D6004
* Add a debug dir for /boot/modules.jhb2016-05-031-0/+2
| | | | | | | This provides a place for standalone modules to store debug symbols. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D6190
* etc: minor spelling fixes.pfg2016-05-014-5/+5
| | | | | | Mostly comments but these tend to be user-visible. MFC after: 2 weeks
* Fix incorrect permissions for /etc/rc.d/sendmail in fallout frompeter2016-04-301-1/+1
| | | | release-pkg merge.
* Make SERVERS REQUIRE clean when MK_KERBEROS==nongie2016-04-302-1/+2
| | | | | | | | | Make kdc run BEFORE SERVERS instead of being REQUIREd by SERVERS, so systems that pedantically check REQUIREs function after r270782 MFC after: 1 week X-MFC with: r270782 Sponsored by: EMC / Isilon Storage Division
* Add sdiff test directory to the tests mtreebapt2016-04-301-0/+2
|
* Add a savecore_enable variable support for the savecore rc scriptbapt2016-04-292-0/+2
| | | | | | | | By default set to 'YES' so it does not change the current behaviour for users, this variable allows to decide to not extract crach dumps from the dump device at boot time by setting it to "NO" in rc.conf. Sponsored by: Gandi.net
* Regenerate usb.conf .hselasky2016-04-291-4/+20
| | | | MFC after: 1 week
* Fix duplicate "name" variable that sneaked in with the rc description commit.lme2016-04-241-1/+1
| | | | Approved by: jhibbits
* Fix typo (forgotten "=" after desc).se2016-04-241-1/+1
|
* Cosmetics: - no need to escape the newline after '|'schweikh2016-04-241-4/+4
| | | | | - parenthesize the "case" string for symmetry and improved search for matching paren (e.g. with vi's %)
* Don't remove the /var/run/jail_name.id file if a jail fails to start.jamie2016-04-231-2/+0
| | | | | | | | | This messes up ezjail (and possibly others), when attempting to start a jail that already exists. PR: 208806 Reviewed by: tj MFC after: 5 days
* - Add two new subcommands to rc.subr:lme2016-04-231-3/+18
| | | | | | | | | | "describe" shows an rc script's description "extracommands" shows an rc script's non-standard commands like "reload", "configtest", "keygen", etc - Update the rc(8) manpage and the tcsh(1) completion examples to reflect these changes Approved by: bapt Sponsored by: Essen Linuxhotel Hackathon 2016 Differential Revision: D452
* - Add descriptions to most of the rc scripts. Those are mostly taken from theirlme2016-04-23140-8/+145
| | | | | | | | daemon's manpage and probably improved. - Consistently use "filesystem" not "file system". Approved by: bapt, brueffer Differential Revision: D452
* Remove mroute6d rc scriptbapt2016-04-233-20/+1
| | | | | | | It is directly available via ports (pim6dd which provides the needed rc script) Reported by: lme Sponsored by: Essen Hackathon 2016
* Add ATF tests for usr.sbin/extattrasomers2016-04-221-0/+2
| | | | | | | | | | Add ATF tests for the existing behavior of setextattr, rmextattr, lsextattr, and getextattr. Reviewed by: ngie MFC after: 4 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D5889
* Turn ssh_host_dsa_key back on until PR#208254 is taken care of.peter2016-04-171-1/+1
|
* Fix etcupdate(8) with rc.sendmail and devd/*. It turns outgjb2016-04-172-17/+3
| | | | | | | BIN1 and such in etc/* cannot use FILESGROUPS. Reported by: peter Sponsored by: The FreeBSD Foundation
* Remove Big5HKSCS entries from mtreebapt2016-04-161-4/+0
| | | | Reported by: ache
* MFHgjb2016-04-045-10/+49
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * pf: Friendly error message for status if pf.ko is not loadedkp2016-03-271-1/+5
| | | | | | | | | | | | | | | | | | Check if pf.ko is loaded (i.e. /dev/pf exists) before trying to use it. This means that '/etc/rc.d/pf status' will no longer return 'pfctl: /dev/pf: No such file or directory' but 'pf.ko is not loaded'. PR: 205671 Submitted by: Johannes Jost Meixner <xmj@FreeBSD.org>
| * rc.d: Make msgs a proper rc.d script.jilles2016-03-271-5/+17
| | | | | | | | | | PR: 207149 Reported by: Jonathan de Boyne Pollard
| * Make the autofs(5) -hosts map more robust, primarily to make it correctlytrasz2016-03-231-2/+2
| | | | | | | | | | | | | | | | | | | | handle NFS shares containing whitespace. This also adds the -E parameter to showmount(8). Reviewed by: emaste@, jhibbits@, wblock@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5649
| * Add a special case for NTFS to the -media autofs(5) map.trasz2016-03-181-2/+22
| | | | | | | | | | | | Submitted by: lme@ (earlier version) MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * Just install ar5523.bin into /usr/share/firmware and stop compiling itimp2016-03-151-0/+2
| | | | | | | | | | | | in. Differential Review: https://reviews.freebsd.org/D5639
| * Restore accidentaly removed comment line.trasz2016-03-141-0/+1
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* | MFHgjb2016-03-146-4/+27
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Fix autofs handling of filesystem labels containing plus signs and slashes.trasz2016-03-141-0/+7
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
| * Require firewall setup before running rc.d/netwait, otherwise the pingian2016-03-131-1/+1
| | | | | | | | | | | | | | packets sent by netwait may not get through. PR: 207916 Submitted by: John.Marshall@riverwillow.com.au (ipfw), ian@ (pf, ipfilter)
| * Fix handling of umtxp resource limit in sh(1)/ulimit(1), limits(1), addkib2016-03-121-0/+1
| | | | | | | | | | | | | | | | login.conf(5) support. Reviewed by: jilles Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D5610
| * META_MODE: Simplify the META_COOKIE handling to use .USE/.USEBEFORE.bdrewery2016-03-111-3/+1
| | | | | | | | | | | | | | Extend it to other cases of meta mode cookies so they get the proper rm cookie behavior when a .meta file detects it needs to rebuild and fails. Sponsored by: EMC / Isilon Storage Division
| * DIRDEPS_BUILD: Fix staging of share/sendmail and share/examples.bdrewery2016-03-113-3/+21
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | MFHgjb2016-03-102-0/+7
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Fix and connect setjmp test.bdrewery2016-03-091-0/+2
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
| * Load linux64 module for amd64 if Linux abi enabled.dchagin2016-03-081-0/+5
| | | | | | | | | | | | Reviewed by: emaste@ MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5567
* | MFHgjb2016-03-062-2/+2
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Merge ^/head r296007 through r296368.dim2016-03-037-34/+9
| |\
| * \ Merge ^/head r295902 through r296006.dim2016-02-242-1/+26
| |\ \
| * \ \ Merge ^/head r295544 through r295600.dim2016-02-131-2/+17
| |\ \ \
| * \ \ \ Merge ^/head r295351 through r295543.dim2016-02-114-7/+14
| |\ \ \ \
| * \ \ \ \ Merge ^/head r294961 through r295350.dim2016-02-064-3/+24
| |\ \ \ \ \
| * \ \ \ \ \ Merge ^/head r294777 through r294960.dim2016-01-274-2/+5
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge ^/head r294599 through r294776.dim2016-01-267-5/+117
| |\ \ \ \ \ \ \
OpenPOWER on IntegriCloud