aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Add an additional, libucl-based configuration file parser to ctld.Jakub Wojciech Klama2016-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 Notes: svn path=/head/; revision=295212
* f_substr(): Optimized recipe if running under bashDevin Teske2016-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. Notes: svn path=/head/; revision=295197
* Remove SIG prefix from trapped signalsDevin Teske2016-02-031-5/+4
| | | | | | | Makes traps functional if running under shells/dash Notes: svn path=/head/; revision=295196
* f_substr: Write to stdout when no `-v var_to_set'Devin Teske2016-02-031-1/+5
| | | | | | | Fixes ``setvar: : bad variable name'' Notes: svn path=/head/; revision=295195
* Remove trailing whitespaceDevin Teske2016-02-031-2/+2
| | | | Notes: svn path=/head/; revision=295194
* Define f_sprintf() dynamically at inclusion timeDevin Teske2016-02-031-12/+17
| | | | | | | No need to check/re-check capabilities that won't change at runtime. Notes: svn path=/head/; revision=295180
* Revert r295169 and switch `\ ' to `" "'Devin Teske2016-02-021-2/+2
| | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r295169, r295170, r295173, r295177 Notes: svn path=/head/; revision=295178
* Fix a typo in a commentDevin Teske2016-02-021-1/+1
| | | | Notes: svn path=/head/; revision=295177
* - Note that devctl(8) will appear in 10.3 first.John Baldwin2016-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 Notes: svn path=/head/; revision=295174
* Bump version to 7.1 for +=/-= fixDevin Teske2016-02-021-2/+2
| | | | | | | | | MFC after: 3 days X-MFC-to: stable/10 X-MFC-with: r295169, r295170 Notes: svn path=/head/; revision=295173
* For +=/-=, add . and / to convenience charactersDevin Teske2016-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. Notes: svn path=/head/; revision=295170
* Replace (Qo \ Qc) with (Qo (space) Qc)Devin Teske2016-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. Notes: svn path=/head/; revision=295169
* Utilize new `-v var_to_set' of f_snprintf()Devin Teske2016-02-013-9/+9
| | | | Notes: svn path=/head/; revision=295108
* Move awk(1)-dependent recipes to the bottomDevin Teske2016-01-311-114/+114
| | | | Notes: svn path=/head/; revision=295106
* Move f_isinteger() to the topDevin Teske2016-01-311-10/+10
| | | | | | | Grouping builtins-only algos together Notes: svn path=/head/; revision=295105
* Move f_vsprintf() below f_sprintf()Devin Teske2016-01-311-10/+10
| | | | | | | Variable argument versions grouped with standard versions Notes: svn path=/head/; revision=295104
* Move f_sprintf() above f_snprintf()Devin Teske2016-01-311-15/+15
| | | | | | | Ordering functions by appearance of use Notes: svn path=/head/; revision=295103
* Optimize f_substr() to use built-ins onlyDevin Teske2016-01-311-32/+57
| | | | | | | Change f_snprintf() to use optimzed f_substr() Notes: svn path=/head/; revision=295102
* Optimize f_sprintf() for bashDevin Teske2016-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. Notes: svn path=/head/; revision=295101
* Reset OPTIND to 1 in f_device_find()Devin Teske2016-01-311-2/+2
| | | | Notes: svn path=/head/; revision=295100
* The zfsboot automated part of bsdinstall now supports UEFIAllan Jude2016-01-301-68/+47
| | | | | | | | | MFC after: 3 days Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D4960 Notes: svn path=/head/; revision=295074
* Improve reporting of connection problems in iscsid(8).Edward Tomasz Napierala2016-01-271-7/+14
| | | | | | | | | Obtained from: Mellanox Technologies MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=294932
* syslogd: Enable repeated line compression for lines of any length.Alan Somers2016-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 Notes: svn path=/head/; revision=294924
* Require /sbin/mount_cd9660 when running the cd9660 testsEnji Cooper2016-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 Notes: svn path=/head/; revision=294891
* Replace awk with more efficient builtins-only algoDevin Teske2016-01-271-9/+55
| | | | Notes: svn path=/head/; revision=294880
* Use dpv(1) in `bsdconfig packages'Devin Teske2016-01-273-9/+14
| | | | Notes: svn path=/head/; revision=294866
* Fix ABI parsingDevin Teske2016-01-271-2/+6
| | | | Notes: svn path=/head/; revision=294865
* Change incorrect pathDevin Teske2016-01-271-2/+2
| | | | Notes: svn path=/head/; revision=294864
* Remove uathload from build due to issue with GCC 5.2.0:Ruslan Bukin2016-01-261-0/+2
| | | | | | | | "ld: --relax and -r may not be used together." Requires fixing ld command line arguments and testing. Notes: svn path=/head/; revision=294831
* Cleanup unused-but-set-variable spotted by gcc-4.9.Marcelo Araujo2016-01-262-7/+2
| | | | | | | | | Reviewed by: neel Approved by: rodrigc (mentor) Differential Revision: https://reviews.freebsd.org/D5042 Notes: svn path=/head/; revision=294774
* The <libutil.h> is an ordinary header file; should sort just like any other.Edward Tomasz Napierala2016-01-246-11/+6
| | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=294670
* Fix a typo in a commentDevin Teske2016-01-241-1/+1
| | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=294669
* MFV r294491: ntp 4.2.8p6.Xin LI2016-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 Notes: svn path=/head/; revision=294554
* Switch from FD_SETSIZE to getdtablesize(2) as it can make the FD to beMarcelo Araujo2016-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 Notes: svn path=/head/; revision=294543
* Add "vidcontrol -i active", to print out active vty number,Edward Tomasz Napierala2016-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 Notes: svn path=/head/; revision=294321
* mdoc: sort XrJoel Dahl2016-01-181-3/+3
| | | | Notes: svn path=/head/; revision=294290
* Don't bother checking an ip[46].addr netmask/prefixlen. This is alreadyJamie Gritton2016-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 Notes: svn path=/head/; revision=294196
* Never 4k align the MBR bootpool because zfsldr can not deal with a gapAllan Jude2016-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. Notes: svn path=/head/; revision=294191
* Clear errno before calling getpw*.Jamie Gritton2016-01-161-0/+1
| | | | Notes: svn path=/head/; revision=294183
* Adjust previous fix to conform to the existing style in this file.John Baldwin2016-01-141-2/+1
| | | | Notes: svn path=/head/; revision=293977
* bsdinstall: Suggest the GPT+Active workaround on Dell T5810Eric van Gyzen2016-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 Notes: svn path=/head/; revision=293860
* Add support for relocating AArch64 modules to kldxref. This fixes an errorAndrew Turner2016-01-131-0/+77
| | | | | | | | | | message where it fails to read the module as the unrelocated addresses are zero. Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=293852
* Remove some unneeded headersBaptiste Daroussin2016-01-131-7/+0
| | | | Notes: svn path=/head/; revision=293834
* Fix Coverity warnings regarding r293229Alan Somers2016-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 Notes: svn path=/head/; revision=293833
* ypldap(8) is a feature ready to be used to translate nis(8) database to ldap(3).Marcelo 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 Notes: svn path=/head/; revision=293801
* Add a basic bhyvectl manpage.Christian Brueffer2016-01-122-1/+98
| | | | | | | | Reviewed by: neel MFC after: 2 weeks Notes: svn path=/head/; revision=293745
* Fix bhyve(1) operation on vmnet devices, broken in r293459.Gleb Smirnoff2016-01-101-1/+2
| | | | Notes: svn path=/head/; revision=293643
* Fix improper duration for f_dialog_pause() APIDevin Teske2016-01-091-1/+0
| | | | | | | | MFC after: 3 days X-MFC-to: stable/10 Notes: svn path=/head/; revision=293617
* Fix version number.Xin LI2016-01-091-1/+1
| | | | Notes: svn path=/head/; revision=293469
* Add netmap support for bhyveGeorge V. Neville-Neil2016-01-091-32/+273
| | | | | | | | | Submitted by: btw MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4826 Notes: svn path=/head/; revision=293459