summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Add a single example of adding a user that roughly corresponds with thewblock2016-04-231-1/+13
| | | | | | adduser example in the Handbook. MFC after: 1 week
* Define which of the username options (-u/-U) to jexec(8) is the default.bcr2016-04-231-1/+2
| | | | | | | | | Bump Dd. PR: 207587 Submitted by: dewayne@heuristicsystems.com.au MFC after: 3 days Sponsored by: Essen Hackathon 2016
* Fix looking for "UTC" at start of ptr by using strnmp instead of improperlyngie2016-04-231-2/+2
| | | | | | | | | unrolled equivalent CID: 1347118 MFC after: 1 week Reported by: Coverity Sponsored by: EMC / Isilon Storage Division
* Add ATF tests for usr.sbin/extattrasomers2016-04-223-0/+301
| | | | | | | | | | 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
* Use MIN()/MAX() macros from sys/param.h.araujo2016-04-222-3/+3
| | | | | Reviewed by: grehan Differential Revision: https://reviews.freebsd.org/D6054
* Don't try to free `string` (stack allocated char[])ngie2016-04-221-2/+1
| | | | | | | | | Fix minor style with warnx call while in the neighborhood MFC after: 1 week CID: 1009683 Reported by: Coverity, gcc 5.x Sponsored by: EMC / Isilon Storage Division
* Don't use `entry` after free in the "already in lists" casengie2016-04-221-0/+1
| | | | | | | | | | | Return with 0 as it isn't an error. MFC after: 1 week CID: 1006085 Reported by: Coverity Obtained from: Isilon OneFS (part of r493633) Submitted by: Thor Steingrimsson <thor.steingrimsson@isilon.com> Sponsored by: EMC / Isilon Storage Division
* Use macro MAX() from sys/param.h.araujo2016-04-221-1/+1
| | | | MFC after: 2 weeks.
* Use macro MAX() from sys/param.h.araujo2016-04-221-1/+1
| | | | MFC after: 2 weeks.
* Plug memory leakbapt2016-04-201-0/+2
| | | | | Reported by: coverity CID: 1331664, 1331665
* Plug various resources leakbapt2016-04-201-1/+13
| | | | | | | | While here fix a test logic Reported by: coverity CID: 1332096, 1332097, 1332098, 1332099, 1332100, 1332101, 1332102 MFC after: 1 week
* Plug leaksbapt2016-04-201-0/+8
| | | | | | Reported by: Coverity CID: 1340155 and 1340156 MFC after: 1 week
* Don't use SYSDIR to avoid conflicts with existing usage.grehan2016-04-201-2/+2
| | | | | | | Also, use SRCTOP to locate the top of the source tree instead of a relative path. PR: 208856
* Update the bhyve(8) man page:novel2016-04-201-1/+22
| | | | | | | | | - Document powering off by sending SIGTERM signal - Document exit codes Reviewed by: wblock, neel Approved by: wblock Differential Revision: D5982
* Always emit an error message on passthru configuration errors.jhb2016-04-191-22/+34
| | | | | | | | | | | Previously, many errors (such as the PCI device not being attached to the ppt(4) driver) resulted in bhyve silently exiting without starting the virtual machine. Now any errors encountered when configuring a virtual slot for a PCI passthru device should be noted on stderr. Reviewed by: neel Differential Revision: https://reviews.freebsd.org/D5990
* Add a new installation type to bsdinstall/zfsboot: BIOS+UEFIallanjude2016-04-191-16/+52
| | | | | | | | | | | Installs both pmbr+gptzfsboot as well as boot1.efifat in separate partitions The resulting system can be booted with either UEFI or BIOS/CSM. Preference is controlled by the user's firmware boot settings. This is now the default for zfsboot installs PR: 208629 Submitted by: Galael LAPLANCHE <ganael.laplanche@corp.ovh.com> (original version)
* Reuse our roundup2() macro instead of reinventing the wheel.pfg2016-04-182-6/+2
| | | | Obtained from: DragonflyBSD
* The malloc will return NULL if it can't allocate memory.araujo2016-04-181-1/+1
| | | | MFC after: 2 weeks.
* Use nitems instead of 'sizeof(mapnames) / sizeof(mapnames[0]'.araujo2016-04-181-2/+2
|
* Use the SOCK_CLOEXEC flags in the socket(2) 'type' attribute instead ofbapt2016-04-161-8/+3
| | | | | | calling fcntl(2) MFC after: 1 week
* Use pipe2(2) to directly set the close-on-exec flags directlybapt2016-04-161-6/+1
| | | | MFC after: 1 week
* MFHgjb2016-04-1621-55/+143
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * Cleanup unnecessary semicolons from utilities we all love.pfg2016-04-158-10/+10
| |
| * Use NULL instead of 0 for pointers.araujo2016-04-151-8/+8
| | | | | | | | | | | | | | | | | | fgetln(3) will returns NULL if cannot get a line from a stream. strsep(3) it will returns NULL if the end of the string was reached. jemalloc(3) malloc will returns NULL if it cannot allocate memory. fgetln(3) it will returns NULL if it cannot get a line from a stream. MFC after: 4 weeks
| * Use NULL instead of 0 for pointers.araujo2016-04-152-2/+2
| | | | | | | | | | | | | | | | getenv(3) returns NULL if the variable name is not in the current environment. getservent(3) returns NULL on EOF or error MFC after: 4 weeks
| * Use NULL instead of 0 for pointers.araujo2016-04-151-3/+3
| | | | | | | | | | | | fopen(3) returns NULL in case it can't open the STREAM. fgetln(3) returns NULL if it can't get a line from a STREAM. malloc returns NULL if it can't allocate memory.
| * Use NULL instead of 0 for pointers and memory allocation.araujo2016-04-151-3/+3
| | | | | | | | | | | | malloc and realloc will return NULL pointer if it can't alloc memory. MFC after: 4 weeks
| * Remove a link to the CTM section of the Handbook, which no longer exists.wblock2016-04-141-6/+1
| | | | | | | | MFC after: 1 week
| * Use NULL instead of 0 for pointers.araujo2016-04-141-1/+1
| | | | | | | | fopen(3) will return NULL in case it can't open the STREAM.
| * Use NULL instead of 0 for pointers.araujo2016-04-141-1/+1
| | | | | | | | | | The malloc will return a pointer to the allocated memory if successful, otherwise a NULL pointer is returned.
| * Use NULL instead of 0 for pointers.araujo2016-04-142-3/+3
| | | | | | | | | | The strchr(3) returns a NULL if the character does not appears in the string. The malloc will return NULL if cannot allocate memory.
| * Use NULL instead of 0 for pointers.araujo2016-04-141-3/+5
| | | | | | | | | | | | | | | | | | | | | | fopen(3) will return NULL in case it can't open the STREAM. The malloc will return a pointer to the allocated memory if successful, otherwise a NULL pointer is returned. Also add an extra DEBUG1 to print out the error to open a file. Reviewed by: ed Differential Revision: https://svnweb.freebsd.org/changeset/base/297959
| * Use NULL instead of 0 for pointers.araujo2016-04-141-1/+1
| | | | | | | | | | | | fopen(3) returns a FILE pointer, otherwise NULL is returned. MFC after: 2 weeks
| * Handle PBA that shares a page with MSI-X table for passthrough devices.jhb2016-04-132-14/+105
| | | | | | | | | | | | | | | | | | | | If the PBA shares a page with the MSI-X table, map the shared page via /dev/mem and emulate accesses to the portion of the PBA in the shared page by accessing the mapped page. Reviewed by: grehan MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5919
| * Convert ypldap_addr list to a tailq(queue(3)).araujo2016-04-133-39/+26
| | | | | | | | Obtained from: OpenBSD r1.11, r1.17 and r1.36
* | MFHgjb2016-04-133-39/+26
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | MFHgjb2016-04-131-0/+9
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Apply revisions 1.4 and 1.5 from ldapd's ber.c to ypldap's copy, so it canaraujo2016-04-131-0/+9
| | | | | | | | | | | | deal with messages that haven't been fully read from the server yet. Obtained from: OpenBSD r1.11
| * Make the usage() mention the -u option added in r295212.trasz2016-04-121-1/+1
| | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* | MFHgjb2016-04-121-1/+1
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | MFHgjb2016-04-1111-27/+31
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * lpr: replace 0 with NULL for pointers.pfg2016-04-108-23/+23
| | | | | | | | | | | | Found with devel/coccinelle. Reviewed by: gad
| * Allow the location of the kernel source tree to be overridden.grehan2016-04-101-1/+3
| | | | | | | | | | This makes it easier for the bhyve executable to be built out of the tree.
| * bsdinstall/zfsboot should create /tmp and /var/tmp if they do not existallanjude2016-04-081-0/+2
| | | | | | | | | | | | | | PR: 208629 PR: 208568 Submitted by: Galael LAPLANCHE <ganael.laplanche@corp.ovh.com> MFC after: 2 weeks
| * Do not add swap to fstab when swapsize is 0allanjude2016-04-081-2/+2
| | | | | | | | | | | | | | | | | | If a user requested encrypted swap, but 0 sized, it would still be added to fstab PR: 208630 Submitted by: Ganael LAPLANCHE <ganael.laplanche@corp.ovh.com> MFC after: 2 weeks Sponsored by: ScaleEngine Inc.
| * Chase r296204 by renaming tzsetup(1) to tzsetup(8) in the testsngie2016-04-061-1/+1
| | | | | | | | | | | | MFC after: 3 days X-MFC with: r296204 Sponsored by: EMC / Isilon Storage Division
| * bhyveload: fix from loading undefined size.pfg2016-04-061-2/+1
| | | | | | | | | | | | | | | | | | We were setting an incorrect/undefined size and as it came out the st struct was not really being used at all. This was actually a bug but by sheer luck it had no visual effect. CID: 1194320 Reviewed by: grehan
| * bhyve: Remove unneeded variable ncq.pfg2016-04-051-5/+1
| | | | | | | | | | | | | | | | ncq was not being inititialized properly but it was not actually necessary either, so make the code smaller by removing it. CID: 1248842 Reviewed by: grehan
* | MFHgjb2016-04-062-7/+2
| | | | | | | | Sponsored by: The FreeBSD Foundation
* | MFHgjb2016-04-0423-144/+211
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud