summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Use consistent style for optional subdirectoriesemaste2015-08-101-29/+15
| | | | | | Reviewed by: imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3356
* Remove ${_subdir}s that are never setemaste2015-08-101-6/+1
| | | | | | | The MK_NIS subdirs were leftovers from r212558 and kdump/truss were introduced in r240404. Sponsored by: The FreeBSD Foundation
* Add a #ifndef around the HAVE_ICONV settings since it is suppliedpeter2015-08-101-0/+2
| | | | by the Makefile.
* Don't assume iconv is enabled. I didn't realize there was a configurationpeter2015-08-102-2/+2
| | | | | | control to turn it off and it wasn't being respected. Pointed out by: gshapiro
* Fix typo introduced in r275079peter2015-08-091-1/+1
|
* Update svnlite from 1.8.10 to 1.8.14. This is mostly for client-side bugpeter2015-08-091-5/+8
| | | | | | fixes and quality of life improvements. While there are security issues in this time frame that affect usage as a server (eg: linked into apache), this isn't possible here.
* Update apr-util config - I don't believe this part is used by svn, butpeter2015-08-092-9/+5
| | | | if it were, use shm_* instead of sysvshm.
* Update apr-1.5.1 to 1.5.2peter2015-08-092-4/+4
|
* fix regression in xargs -Px (introduced in r286289) and add regression testsallanjude2015-08-086-6/+17
| | | | | | | | PR: 202152 Submitted by: jbeich (original), Nikolai Lifanov (final) Reviewed by: jbeich Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D3330
* Fix interaction between libedit initialization and Capsicumtrasz2015-08-081-5/+7
| | | | | | | | | | in units(1). The most visible is the removal of libedit warnings about being unable to open termcap database. Reviewed by: eadler@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3322
* Fix typo introduced in previous commit.marcel2015-08-071-1/+1
| | | | Pointed out by: Nikolai Lifanov <lifanov at mail.lifanov.com>
* o Fix a typo.marcel2015-08-071-2/+82
| | | | o Describe the file formats mkimg can create.
* Remove an extra new line on usage().araujo2015-08-071-2/+2
| | | | | | Rename domain to domainname to be identical to the man page. Reported by: bde
* Rebase after r286395: rounding fix for dynamic VHDmarcel2015-08-0728-402/+407
|
* Fix the dynamic VHD format to work with qemu. The size of the diskmarcel2015-08-071-37/+55
| | | | | | | | | | | is taken to match the geometry and only when the geometry is max'd out, is the actual recorded size taken. Note that qemu has the same logic for the fixed VHD format. However that is known to conflict with Microsoft Azure, where the recorded size of the image is what counts. Pointed out by: gjb@
* Get closest as possible with style(9). No functional change.araujo2015-08-071-14/+10
| | | | | Differential Revision: D3295 Reviewed by: bapt
* Consistently use both leading and trailing spaces inside of the {}'sjhb2015-08-061-10/+14
| | | | | when pretty-printing structures. Most structures used both spaces, but some only used a trailing space and some used neither.
* Whitespace fixes to consistently use spaces before }'s andjhb2015-08-061-15/+25
| | | | wrap long lines.
* Decode the arguments passed to the *at() family of system calls. This isjhb2015-08-062-4/+118
| | | | | | | | | | | | especially useful now that libc's open() always calls openat(). While here, fix a few other things: - Decode the mode argument passed to access(), eaccess(), and faccessat(). - Decode the atfd paramete to pretty-print AT_FDCWD. - Decode the special AT_* flags used with some of the *at() system calls. - Decode arguments for fchmod(), lchmod(), fchown(), lchown(), eaccess(), and futimens(). - Decode both of the timeval structures passed to futimes() instead of just the first one.
* Decode the arguments to mkfifo() and fix an off-by-one error in the argumentsjhb2015-08-061-1/+3
| | | | to mknod().
* Don't mark the fcntl flag argument as an output parameter so that it isjhb2015-08-061-1/+1
| | | | always decoded. Previously the argument was not decoded if fcntl() failed.
* Add recently added values of various flags and enumerations includingjhb2015-08-061-12/+20
| | | | | | kevent filters, kevent flags, flags to mmap, seek locations, fcntl operations, file flags, socket domains, open flags, resource limits, and pathconf values.
* Fix shell injection vulnerability in patch(1) via ed(1) bydelphij2015-08-052-4/+16
| | | | | | | | | | tightening sanity check of the input. [1] While I'm there also replace ed(1) with red(1) because we do not need the unrestricted functionality. [2] Obtained from: Bitrig [1], DragonFly [2] Security: CVE-2015-1418 [1]
* find: Fix segfault with very long path in -exec/-ok ... {} \;.jilles2015-08-052-15/+25
| | | | | | | | | | | | | | If the resulting argument is longer than MAXPATHLEN, realloc() was called to extend the space, but the new pointer was not correctly stored. Different from what OpenBSD has done, rewrite brace_subst() to calculate the necessary space first and realloc() at most once. As before, the e_len fields are not updated in case of a realloc. Therefore, a following long argument will do another realloc. PR: 201750 MFC after: 1 week
* Rework get_string() to make it more robust when fetching strings of unknownjhb2015-08-051-17/+29
| | | | | | | length. In particular, instead of blinding fetching 1k blocks, do an initial fetch up to the end of the current page followed by page-sized fetches up to the maximum size. Previously if the 1k buffer crossed a page boundary and the second page was not valid, the entire operation would fail.
* Whitespace fix: remove some spurious spaces before commas.jhb2015-08-051-11/+11
|
* xargs now takes -P0, creating as many concurrent processes as possibleallanjude2015-08-042-3/+19
| | | | | | | | | | | PR: 199976 Submitted by: Nikolai Lifanov <lifanov@mail.lifanov.com> Reviewed by: mjg, bjk Approved by: bapt (mentor) MFC after: 1 month Relnotes: yes Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D2616
* Get it closes to style(9).araujo2015-08-041-20/+14
| | | | | | | Staticization usage() and printit(). Fix the usage of err(3). Reviewed by: bde
* Revert r286144 leaving the original fix to the buffer overflow.pfg2015-08-041-3/+2
| | | | | | | Some developers consider the new code unnecessarily obfuscated. There was also a benign off-by-one. Discussed with: bde, vangyzen, jmallett
* Remove the 3rd clause of BSD LICENSE.araujo2015-08-041-36/+41
| | | | | | | | | | Sync the code with the OpenBSD version. Small style(9) fix up. Differential Revision: D3212 Reviewed by: rodrigc, bapt Obtained from: OpenBSD Sponsored by: gandi.net
* Remove the 3rd clause of BSD LICENSE.araujo2015-08-041-32/+48
| | | | | | | | | Sync the code with the OpenBSD version. Differential Revision: D3213 Reviewed by: rodrigc, bapt Obtained from: OpenBSD Sponsored by: gandi.net
* Remove never used filebapt2015-08-031-322/+0
| | | | Obtained from: DragonFlyBSD
* Make image_copyout_zeroes() an interface function.marcel2015-08-032-6/+7
|
* - Add myself to the calendar.freebsd. (fix typo in r286160)junovitch2015-08-011-1/+1
| | | | | Approved by: delphij (mentor) Differential Revision: https://reviews.FreeBSD.org/D3265
* - Add myself to the committers-ports.dot and add my mentor relationship.junovitch2015-08-011-0/+1
| | | | | | | - Add myself to the calendar.freebsd. Approved by: delphij (mentor) Differential Revision: https://reviews.FreeBSD.org/D3265
* use : instead of true...jmg2015-08-011-6/+6
| | | | | Change file file to file1 file2, partly for igor, and partly because it's odd to pass the same file to a command twice..
* Buffer overflow in wall(1).pfg2015-08-011-2/+3
| | | | | | | | | | Revert r286102 and apply a cleaner fix. Tested for overflows by FORTIFY_SOURCE GSoC (with clang). Suggested by: bde Reviewed by: Oliver Pinter Tested by: Oliver Pinter MFC after: 3 days
* Use standard 'THE AUTHOR' license textemaste2015-07-311-1/+1
| | | | Approved by: jmg
* Buffer overflow in wall(1).pfg2015-07-311-2/+2
| | | | | | | | | | This affected syslogd, wall and talkd. Detected by FORTIFY_SOURCE GSoC (with clang). Submitted by: Oliver Pinter Differential Revision: https://reviews.freebsd.org/D3254 Reviewed by: delphij, jmg MFC after: 3 days
* Use correct number of arguments to semctl() for IPC_RMID.rodrigc2015-07-301-1/+1
| | | | | | PR: 118292 Submitted by: araujo Differential Revision: D2669
* Get function prototypes for msg, shm, sem functionsrodrigc2015-07-301-0/+3
| | | | | | from header files. Differential Revision: D2669
* Make some variables and functions static.rodrigc2015-07-301-15/+8
|
* Allow ELF Tool Chain elfcopy to be installed as objcopyemaste2015-07-291-2/+10
| | | | | | | | | | | | | ELF Tool Chain elfcopy is nearly a drop-in replacement for GNU objcopy, but does not currently support PE output which is needed for building x86 UEFI bits. Add a src.conf knob to allow installing it as objcopy and set it by default for aarch64 only, where we don't have a native binutils. Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D2887
* ar: Fix deterministic mode default with options other than -q or -remaste2015-07-291-8/+18
| | | | | | | Reported by: jhibbits Reviewed by: jhibbits Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3237
* ar: enable deterministic mode by defaultemaste2015-07-292-0/+3
| | | | | | | | | | | | Ar cannot handle UIDs with more than 6 digits, and storing the mtime, uid, gid and mode provides little to negative value anyhow for ar's uses. Turn on deterministic (-D) mode by default; it can be disabled by the user with -U. PR: 196929 Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3190
* Compilers will complain the usage of obsolescent variable declarations.araujo2015-07-293-6/+6
| | | | | | Also it will fix the build problem with sparc64. Submitted by: ed@
* Fix shell injection vulnerability in patch(1) and drop SCCSdelphij2015-07-282-41/+65
| | | | | | | | | support by replacing system() with execve(). Future revisions may remove the functionality completely. Obtained from: Bitrig Security: CVE-2015-1416
* Staticfy and constify some variables and clean up the code a bit to make itaraujo2015-07-283-7/+7
| | | | | | | | more readable. No functional change. Differential Revision: D3166 Reviewed by: kib Sponsored by: gandi.net
* Rewrite scan procedure with a FSM. This improves code readability bydelphij2015-07-271-60/+129
| | | | | | | | making clear transits between different states, and avoids bug with handling repeated $'s. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D3221
* Replace GNU RCS ident with a BSD license identbapt2015-07-269-0/+303
| | | | | | | | | | | | | | | | | | | | Rationale: ident(1) is useful out of RCS, lot of scripts are using ident(1) and failing when base is built WITHOUT_RCS. This version is: - fully compatible with RCS 5.7 ident. - fully compatible with RCS 5.9 ident. - passes all ident test from GNU RCS 5.9 test suite This version has support for: svn extension for the Keyword id (double colon and # before last $) Différences with GNU RCS ident: - no long options as found in GNU RCS 5.9 (but not commented there). - '-V' reports nothing but has been added for compatibility. Differential Revision: https://reviews.freebsd.org/D3200 Reviewed by: pfg
OpenPOWER on IntegriCloud