summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Add an additional, libucl-based configuration file parser to ctld.jceel2016-02-035-93/+1023
| | | | | | | | | | | | Default ctld behavior remains unchanged - libucl parser can be selected explicitly by adding -u switch to ctld command line. Reviewed by: trasz Approved by: trasz (mentor) MFC after: 1 month Relnotes: yes Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D4534
* f_substr(): Optimized recipe if running under bashdteske2016-02-031-69/+104
| | | | | | This makes runnig f_substr() faster than it was when running under bash, but both sh and dash are still faster when using the non-bash recipe which features dynamically unrolled loops.
* Remove SIG prefix from trapped signalsdteske2016-02-031-5/+4
| | | | Makes traps functional if running under shells/dash
* f_substr: Write to stdout when no `-v var_to_set'dteske2016-02-031-1/+5
| | | | Fixes ``setvar: : bad variable name''
* Remove trailing whitespacedteske2016-02-031-2/+2
|
* Define f_sprintf() dynamically at inclusion timedteske2016-02-031-12/+17
| | | | No need to check/re-check capabilities that won't change at runtime.
* Revert r295169 and switch `\ ' to `" "'dteske2016-02-021-2/+2
| | | | | | MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r295169, r295170, r295173, r295177
* Fix a typo in a commentdteske2016-02-021-1/+1
|
* - Note that devctl(8) will appear in 10.3 first.jhb2016-02-021-2/+2
| | | | | | | - Add missing devctl_set_driver entry to namelist in devlist(3). - Fix sorting of function prototypes in devlist(3). MFC after: 3 days
* Bump version to 7.1 for +=/-= fixdteske2016-02-021-2/+2
| | | | | | MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r295169, r295170
* For +=/-=, add . and / to convenience charactersdteske2016-02-022-2/+10
| | | | | | | | | | | | | | | sysrc(8) supports key+=value and key-=value, but can be told what the delimiter is by being passed as char1 (e.g., "sysrc key+=",value" to use a comma as the delimiter instead of space). For convenience, if the first char is alpha-numeric, it is assumed you wanted whitespace as the delimiter. However, if you naively (as I just did) execute: sysrc rc_conf_files+=/etc/rc.conf.other the result is unexpected. This commit makes `.' and `/' in-addition to alpha-numeric first-characters to cause the default of whitespace to be used as the delimiter. This also means that you can no longer use these as a delimiter.
* Replace (Qo \ Qc) with (Qo (space) Qc)dteske2016-02-021-3/+3
| | | | | | When using col(1) piped to vim(1) as pager for man(1), the former sequence of (Qo \ Qc) renders as "" without the space. Replace with (Qo (space) Qc) which renders properly in more (all?) pagers.
* Utilize new `-v var_to_set' of f_snprintf()dteske2016-02-013-9/+9
|
* Move awk(1)-dependent recipes to the bottomdteske2016-01-311-114/+114
|
* Move f_isinteger() to the topdteske2016-01-311-10/+10
| | | | Grouping builtins-only algos together
* Move f_vsprintf() below f_sprintf()dteske2016-01-311-10/+10
| | | | Variable argument versions grouped with standard versions
* Move f_sprintf() above f_snprintf()dteske2016-01-311-15/+15
| | | | Ordering functions by appearance of use
* Optimize f_substr() to use built-ins onlydteske2016-01-311-32/+57
| | | | Change f_snprintf() to use optimzed f_substr()
* Optimize f_sprintf() for bashdteske2016-01-311-1/+9
| | | | | | | | bash lacks the ksh93 optimization that makes sub-shells fast if they do not alter io. bash 3.1-alpha1 introduced printf -v var_to_set which is not as fast but is still significantly faster than var_to_set=$( printf ) when using any version of bash. If we find our interpreter to somehow be bash by invocation or inclusion, use the feature that provides fastest results.
* Reset OPTIND to 1 in f_device_find()dteske2016-01-311-2/+2
|
* The zfsboot automated part of bsdinstall now supports UEFIallanjude2016-01-301-68/+47
| | | | | | MFC after: 3 days Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D4960
* Improve reporting of connection problems in iscsid(8).trasz2016-01-271-7/+14
| | | | | | Obtained from: Mellanox Technologies MFC after: 1 month Sponsored by: The FreeBSD Foundation
* syslogd: Enable repeated line compression for lines of any length.asomers2016-01-271-1/+1
| | | | | | | | | | | | Enable repeated line compression for lines of any length, instead of only short lines. AFAICT repeated line compression was limited to short lines as a RAM optimization, which made sense when karels added it in 1988, but no longer. The penalty is a paltry 904B of RAM per file logged. Reviewed by: rpaulo MFC after: 32 days Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D4475
* Require /sbin/mount_cd9660 when running the cd9660 testsngie2016-01-271-0/+2
| | | | | | | | | | In some cases the test system might not have mount_cd9660(8). Don't implicitly rely on it while testing cd9660 support; explicitly rely on it MFC after: 1 week Reported by: mjohnston Sponsored by: EMC / Isilon Storage Division
* Replace awk with more efficient builtins-only algodteske2016-01-271-9/+55
|
* Use dpv(1) in `bsdconfig packages'dteske2016-01-273-9/+14
|
* Fix ABI parsingdteske2016-01-271-2/+6
|
* Change incorrect pathdteske2016-01-271-2/+2
|
* Remove uathload from build due to issue with GCC 5.2.0:br2016-01-261-0/+2
| | | | | "ld: --relax and -r may not be used together." Requires fixing ld command line arguments and testing.
* Cleanup unused-but-set-variable spotted by gcc-4.9.araujo2016-01-262-7/+2
| | | | | | Reviewed by: neel Approved by: rodrigc (mentor) Differential Revision: https://reviews.freebsd.org/D5042
* The <libutil.h> is an ordinary header file; should sort just like any other.trasz2016-01-246-11/+6
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Fix a typo in a commentdteske2016-01-241-1/+1
| | | | | MFC after: 3 days X-MFC-to: stable/10
* MFV r294491: ntp 4.2.8p6.delphij2016-01-2210-34/+106
| | | | | | | | Security: CVE-2015-7973, CVE-2015-7974, CVE-2015-7975 Security: CVE-2015-7976, CVE-2015-7977, CVE-2015-7978 Security: CVE-2015-7979, CVE-2015-8138, CVE-2015-8139 Security: CVE-2015-8140, CVE-2015-8158 With hat: so
* Switch from FD_SETSIZE to getdtablesize(2) as it can make the FD to bearaujo2016-01-221-9/+6
| | | | | | | | | tunable. Also it gets more close with the original implementation from OpenBSD. Requested by: rodrigc Approved by: rodrigc (mentor) Differential Revision: https://reviews.freebsd.org/D4970
* Add "vidcontrol -i active", to print out active vty number,trasz2016-01-192-6/+23
| | | | | | | | | to be used with eg "vidcontrol -s". Reviewed by: emaste@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D4968
* mdoc: sort Xrjoel2016-01-181-3/+3
|
* Don't bother checking an ip[46].addr netmask/prefixlen. This is alreadyjamie2016-01-161-18/+3
| | | | | | | | handled by ifconfig, and it was doing it wrong when the paramater included extra ifconfig options. PR: 205926 MFC after: 5 days
* Never 4k align the MBR bootpool because zfsldr can not deal with a gapallanjude2016-01-161-1/+3
| | | | | | | | | | | | | | | | If the bootpool does not start at the first sector of the BSD partition then zfsldr seeks to the wrong offset inside the ZFS vdev label, and is unable to find zfsboot, so the system does not boot If 4k alignment is requested, align the BSD partition in the MBR table, and align the swap and data pool, but the bootpool must start at sector 1 While here, if 4k alignment is requested, disable MBR CHS alignment, as this results in not-4k aligned partitions. Reported by: Alex Wilkinson MFC after: 5 days Sponsored by: ScaleEngine Inc.
* Clear errno before calling getpw*.jamie2016-01-161-0/+1
|
* Adjust previous fix to conform to the existing style in this file.jhb2016-01-141-2/+1
|
* bsdinstall: Suggest the GPT+Active workaround on Dell T5810vangyzen2016-01-141-1/+1
| | | | | | | | | | | | | | | | | | The Dell Precision Tower 5810 fails to boot from GPT in Legacy/BIOS mode without the Active flag in the Protective MBR. Suggest the workaround during installation. Since an increasing number of Dell systems exhibit this behavior, I imagine all Dells past a certain date will do so. I would like to suggest the workaround for all Dells with a BIOS date of, say, 2014 or later, but I would need to test a variety of systems before committing such a change. Reviewed by: allanjude, dteske MFC after: 5 days Relnotes: We should probably suggest using GPT+Active on "recent" Dells. Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D4075
* Add support for relocating AArch64 modules to kldxref. This fixes an errorandrew2016-01-131-0/+77
| | | | | | | message where it fails to read the module as the unrelocated addresses are zero. Sponsored by: ABT Systems Ltd
* Remove some unneeded headersbapt2016-01-131-7/+0
|
* Fix Coverity warnings regarding r293229asomers2016-01-132-5/+28
| | | | | | | | | | | | | | | | rpcbind/check_bound.c Fix CID1347798, a memory leak in mergeaddr. rpcbind/tests/addrmerge_test.c Fix CID1347800 through CID1347803, memory leaks in ATF tests. They are harmless because each ATF test case runs in its own process, but they are trivial to fix. Fix a few other leaks that Coverity didn't detect, too. Coverity CID: 1347798, 1347800, 1347801, 1347802, 1347803 MFC after: 2 weeks X-MFC-With: 293229 Sponsored by: Spectra Logic Corp
* ypldap(8) is a feature ready to be used to translate nis(8) database to ldap(3).araujo2016-01-132-3/+6
| | | | | | | | | | | | | | | This commit, fix a core dump on ypldap(8) related with memory allocation. Also an example of how to set the ypldap.conf(5) properly is added to examples files. A new user _ypldap is required to be able to run ypldap(8) as well as in a chroot mode. Reviewed by: rodrigc (mentor), bjk Approved by: bapt (mentor) Relnotes: Yes Sponsored by: gandi.net Differential Revision: https://reviews.freebsd.org/D4744
* Add a basic bhyvectl manpage.brueffer2016-01-122-1/+98
| | | | | Reviewed by: neel MFC after: 2 weeks
* Fix bhyve(1) operation on vmnet devices, broken in r293459.glebius2016-01-101-1/+2
|
* Fix improper duration for f_dialog_pause() APIdteske2016-01-091-1/+0
| | | | | MFC after: 3 days X-MFC-to: stable/10
* Fix version number.delphij2016-01-091-1/+1
|
* Add netmap support for bhyvegnn2016-01-091-32/+273
| | | | | | Submitted by: btw MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4826
OpenPOWER on IntegriCloud