summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
| * MFC r264823 (ed): Make usage printing more consistent with other tools.emaste2016-09-222-4/+22
| | | | | | | | | | | | | | | | | | - Introduce a separate usage() function. - Don't use argv[0]. Directly name the application, as we do elsewhere. - Don't prepend the application name. - Don't print two newlines. Also apply the unnecessary semicolon cleanup from r298089
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-09-124-4/+11
|\ \ | |/
| * MFC r305077:dim2016-09-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squelch clang 3.9.0 warnings about BASE (which is 32768) being converted to -32768 when it is used as an argument to mp_itom(), in both libtelnet and newkey. This code has been wrong since r26238 (!), so after almost 20 years it is rather useless to try to correct it. MFC r305086: Fix warnings in telnet about invalid constant conversions, e.g.: contrib/telnet/telnet/commands.c:2914:13: error: implicit conversion from 'int' to 'char' changes value from 137 to -119 [-Werror,-Wconstant-conversion] *lsrp++ = IPOPT_SSRR; ~ ^~~~~~~~~~ /usr/include/netinet/ip.h:152:21: note: expanded from macro 'IPOPT_SSRR' #define IPOPT_SSRR 137 /* strict source route */ ^~~ contrib/telnet/telnet/commands.c:2916:13: error: implicit conversion from 'int' to 'char' changes value from 131 to -125 [-Werror,-Wconstant-conversion] *lsrp++ = IPOPT_LSRR; ~ ^~~~~~~~~~ /usr/include/netinet/ip.h:148:21: note: expanded from macro 'IPOPT_LSRR' #define IPOPT_LSRR 131 /* loose source route */ ^~~ Use unsigned char buffers instead.
| * MFstable/11 r304951:ngie2016-09-021-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC r303804: Fix building usr.bin/tar/tests with PIE symbol building enabled by removing CFLAGS+= -static `CFLAGS+= -static` was a carryover from pre-r289195 with usr.bin/tar/test/Makefile that should have been specified in LDFLAGS There doesn't seem to be an apparent need for static compilation of the test binaries. Obtained-from: opBSD (418a491eed20d2603ddd1f1bd92c2c0d95094002)
| * MFstable/11 r304949,r305226:ngie2016-09-012-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r304949: MFC r303830,r304693,r304694,r304698: r303830: Remove vestigal references to __alpha__ Replace alpha reference in getconf(1) with amd64 [*] PR: 211300 [*] r304693: Clean up trailing whitespace r304694: Add `MIN_HOLE_SIZE` pathconf(2) support to getconf This allows shell programs to programmatically determine whether or not a filesystem supports sparse files r304698: Add support for _PC_ACL_NFS4 as TRUSTEDBSD_ACL_NFS4 The TRUSTEDBSD prefix was chosen for consistency with the other related `_PC_ACL*` prefixed variables. r305226: MFC r304809: Add non-TRUSTEDBSD prefixed knobs for the _PC_ACL* and {CAP,INF,MAC}_PRESENT knobs It's not necessarily intuitive that the variables to query contain TRUSTEDBSD in the prefix. Add non-TRUSTEDBSD prefixed knobs for querying things like "_PC_ACL_NFS4". Relnotes: yes
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-08-251-8/+39
|\ \ | |/
| * MFC r303929,r303930,r303931,r303932,r303933:bdrewery2016-08-191-8/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | r303929: Fix -S with -b not atomically updating the destination file. r303930: Support -v for -l. r303931: Fix -S with -l not being atomic. r303932: Fix -b failure not restoring flags on the destination file. r303933: Squelch a false-positive Clang static analyzer warning.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-08-173-3/+5
|\ \ | |/
| * MFstable/11 r304208:ngie2016-08-162-3/+3
| | | | | | | | | | | | | | | | | | | | MFC r303830: Remove vestigal references to __alpha__ Replace alpha reference in getconf(1) with amd64 [*] PR: 211300 [*]
| * MFC r303934,r303937,r303942:bdrewery2016-08-151-0/+2
| | | | | | | | | | | | | | | | | | r303934: Support rmdir(2). r303937: Use proper argument length for rmdir(2) for r303934. r303942: Fix sorting in r303934.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-08-103-3/+3
|\ \ | |/
| * MFC r270132 (by gabor):dim2016-08-093-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Do not look for more matching lines if -L is specified Submitted by: eadler (based on) MFC r296799 (by ian): Fix a bug in bsdgrep that caused the program to hang in a tight loop for some combinations of command line options and search patterns. The code was examining regexec flags looking for a regcomp flag value. The fix is to look in the struct field where the decoded regcomp flag was stored when the regex was compiled. With this fix, it's possible to build WITHOUT_GNU_GREP_COMPAT and WITH_BSDGREP and have a usable GPL-free grep (which of course lacks gnugrep extensions). It now passes the kyua tests except for one test that requires the -z/--null-data gnu extension, and one test involving outputting context lines across multiple files which appears to sometimes output an extra delimiter line ("--") between matches (a rather obscure failure of a rather obscure feature, so bsdgrep should be generally usable now). MFC r303676: Fix a segfault in bsdgrep when parsing the invalid extended regexps "?" or "+" (these are invalid, because there is no preceding operand). When bsdgrep attempts to emulate GNU grep in discarding and ignoring the invalid ? or + operators, some later logic in tre_compile_fast() goes beyond the end of the buffer, leading to a crash. Fix this by bailing out, and reporting a bad pattern instead. Reported by: Steve Kargl
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-08-089-5/+264
|\ \ | |/
| * MFC r288306mr2016-08-027-3/+262
| | | | | | | | Add support to systat to display zfs arc cache status/info
| * Direct commit of adapted r303581.ache2016-07-312-2/+2
| | | | | | | | Fix date.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-07-2634-235/+1859
|\ \ | |/
| * MFC r302911:pfg2016-07-252-2/+6
| | | | | | | | | | | | mail(1): Avoid closing negative file descriptors. CID: 1008105, 1008106
| * Fix bspatch heap overflow vulnerability.delphij2016-07-251-0/+4
| | | | | | | | | | | | Obtained from: Chromium Reported by: Lu Tung-Pin Security: FreeBSD-SA-16:25.bspatch
| * MFC r301974: ar: enable reproducible output by default when invoked as 'ar -s'emaste2016-07-252-3/+9
| | | | | | | | | | | | | | | | | | ar output is already deterministic by default for ar -q and ar -r, and when invoked as ranlib. Make ar -s equivalent to ranlib and enable deterministic output by default in that case too. PR: 210330 Sponsored by: The FreeBSD Foundation
| * MFC r302542:delphij2016-07-251-2/+2
| | | | | | | | Use _PATH_DEVNULL instead of hardcoding.
| * MFC: r302827ache2016-07-221-3/+4
| | | | | | | | | | Optimize [Cc]flag case: don't repeatedly add the last character of string2 to squeeze cset when string2 reach its EOS state.
| * MFC: r302826ache2016-07-221-0/+4
| | | | | | | | Document incomplete support of [=equiv=] and collation for ranges.
| * MFC: merge in all new features and improvements into mkuzip(8) from current,sobomax2016-07-2022-113/+1658
| | | | | | | | | | | | | | | | | | | | | | | | | | | | which includes: o LZMA compression; o block de-duplication; o performance improvements; o multi-thread support. This includes the following revisions: r295943,r296626,r296628,r296810,r298504,r298505,r298577 Suggested by: emaste
| * MFC r302770:kib2016-07-201-0/+25
| | | | | | | | Trace timeval parameters to the getitimer(2) and setitimer(2) syscalls.
| * MFC r302558:gahr2016-07-201-108/+133
| | | | | | | | | | | | | | Do not truncate lines longer than 512 chars. PR: 210344 Differential Revision: https://reviews.freebsd.org/D6881
| * MFC r302973:pfg2016-07-201-1/+1
| | | | | | | | | | | | | | | | | | sed(1): Fix off by one introduced in r299211. Detected by running the gsed tests. Submitted by: Mikhail Teterin PR: 195929
| * MFC r302179:markj2016-07-201-3/+13
| | | | | | | | gcore: Forward pending signals when detaching from the target.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-07-197-61/+69
|\ \ | |/
| * MFC r302511, r302771, r302845:pfg2016-07-172-4/+8
| | | | | | | | mail(1): check for out of memory conditions when calling calloc(3).
| * MFC r301090:markj2016-07-161-0/+3
| | | | | | | | mkimg: Indicate that input file pages are unlikely to be reused.
| * MFC r302206asomers2016-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Skip lastcomm and sa tests on unsupported architectures usr.bin/lastcom/tests/Makefile usr.sbin/sa/tests/Makefile Set allow_architectures appropriately. These tests depend on golden files that must be generated for each architecture, and haven't yet been generated for all of them. PR: 204154
| * MFC r302327:ngie2016-07-112-56/+56
| | | | | | | | | | | | | | | | | | Fix .../usr.bin/lastcomm/legacy_test:main on i386 The time in the output files was ahead by 3 hours on i386. Fix the incorrect offset. PR: 210329
| * MFC r302326:ngie2016-07-111-1/+1
| | | | | | | | | | | | | | | | | | Output the diffs to standard error when comparing the expected vs the obtained output from lastcomm instead of just printing out a summary, e.g. "they differed". This will make failures with results more apparent when running kyua debug, kyua report-html, etc.
* | Merge remote-tracking branch 'origin/stable/10' into develLuiz Otavio O Souza2016-06-306-19/+28
|\ \ | |/
| * MFC r302075:mm2016-06-305-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update libarchive to 3.2.1 (bugfix and security fix release) List of vendor fixes: - fix exploitable heap overflow vulnerability in Rar decompression (vendor issue 719, CVE-2016-4302, TALOS-2016-0154) - fix exploitable stack based buffer overflow vulnebarility in mtree parse_device functionality (vendor PR 715, CVE-2016-4301, TALOS-2016-0153) - fix exploitable heap overflow vulnerability in 7-zip read_SubStreamsInfo (vendor issue 718, CVE-2016-4300, TALOS-2016-152) - fix integer overflow when computing location of volume descriptor (vendor issue 717) - fix buffer overflow when reading a crafred rar archive (vendor issue 521) - fix possible buffer overflow when reading ISO9660 archives on machines where sizeof(int) < sizeof(size_t) (vendor issue 711) - tar and cpio should fail if an input file named on the command line is missing (vendor issue 708) - fix incorrect writing of gnutar filenames that are exactly 512 bytes long (vendor issue 682) - allow tests to be run from paths that are equal or longer than 128 characters (vendor issue 657) - add memory allocation errors in archive_entry_xattr.c (vendor PR 603) - remove dead code in archive_entry_xattr_add_entry() (vendor PR 716) - fix broken decryption of ZIP files (vendor issue 553) - manpage style, typo and description fixes Post-3.2.1 vendor fixes: - fix typo in cpio version reporting (Vendor PR 725, 726) - fix argument range of ctype functions in libarchive_fe/passphrase.c - fix ctype use and avoid empty loop bodies in WARC reader Security: CVE-2016-4300, CVE-2016-4301, CVE-2016-4302
| * MFC r301138:pfg2016-06-281-5/+6
| | | | | | | | | | | | | | | | | | | | | | sed(1): convert sed to use REG_STARTEND more explicitly. This is a followup to previous r302228, which only merged the incomplete r300684 causing a regression. Reported by: mi PR: 209387 Taken from: openbsd-tech (Martijn van Duren)
| * sed(1): convert sed to use REG_STARTEND more explicitly.pfg2016-06-271-16/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summarizing the findings in the OpenBSD list: This solves a reproduceable issue with very recent Mesa where REG_NOTBOL combined with a match at the begin of the string causes our regex library to treat the word as not begin of word. Bump __FreeBSD_version: JIC we hit the issue in recent Mesa ports. PR: 209352, 209387 (exp-run) Taken from: openbsd-tech (Martijn van Duren) MFC after: 1 month
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-06-219-6/+183
|\ \ | |/
| * MFC r299529,r299540,r299576,r299896:mm2016-06-179-6/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r299529,r299540: 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 r299576,r299896: Fix broken cpio behavior. Relnotes: yes
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-06-143-10/+24
|\ \ | |/
| * MFC r301513:pfg2016-06-091-1/+1
| | | | | | | | | | | | | | | | indent(1): Fix old typo. It's typedef, not typdef. Obtained from: NetBSD (CVS rev. 1.14)
| * MFC r300428:ngie2016-06-081-1/+1
| | | | | | | | | | | | | | | | | | Fix humanized decoding of struct stat with respect to .st_mtim st_mtim was being incorrectly described as "stime=", not "mtime=". This was introduced with the original feature commit (r176471). PR: 209699
| * MFC r297052:grembo2016-06-061-8/+22
| | | | | | | | Update fetch.1 and fetch.3 to reflect libfetch's actual use of CA bundles
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-06-063-52/+47
|\ \ | |/
| * MFC r300327:ken2016-05-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ r300327 | ken | 2016-05-20 13:30:52 -0600 (Fri, 20 May 2016) | 11 lines Add the density code for LTO-7 to libmt and the mt(1) man page. The density code and bits per mm values were obtained from an actual drive density report. The number of tracks were obtained from an LTO-7 hardware announcement on IBM's web site. ------------------------------------------------------------------------ Sponsored by: Spectra Logic
| * sed: rewrite the main loop.pfg2016-05-241-49/+43
| | | | | | | | | | | | | | | | | | | | Rewrite the main loop of the "sed s/..." command, shortening it by ten lines and simplifying it by removing the switch statement implementing /g, /1, and /2 separately and repetitively. This will be needed to bring a fix from OpenBSD later. Obtained from: OpenBSD (schwarze CVS Rev. 1.18)
| * MFV r299377:pfg2016-05-241-2/+2
| | | | | | | | | | | | | | | | sed.1: Correction for the case insensitive case. Use the capital I instead of the lowercase. Submitted by: Mikhail T.
* | Merge remote-tracking branch 'origin/stable/10' into develLuiz Otavio O Souza2016-05-237-15/+22
|\ \ | |/
| * MFC r300005truckman2016-05-231-3/+3
| | | | | | | | | | | | | | | | | | swprintf() and apparently wcsftime() want the their output buffer size specified in terms of the the number of wide characters and not sizeof(buffer). Reported by: Coverity CID: 1007605, 1007606
| * MFC r299971truckman2016-05-231-1/+1
| | | | | | | | | | | | | | | | Fix off by one error that overflowed the rep_len array when doing the final NUL termination. Reported by: Coverity CID: 1007617
OpenPOWER on IntegriCloud