summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r264400,r265836:ngie2014-12-3126-25/+27
| | | | | | | | | | | | | | r264400: NO_MAN= has been deprecated in favor of MAN= for some time, go ahead and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. r265836: Remove last two NO_MAN= in the tree. In both of these cases, MAN= is what is needed.
* MFC r266074,r266104,r266147:ngie2014-12-30325-78/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r266074: Move old fmake tests into bmake and hook them to the build. This first step is mostly to prevent the code from rotting even further and to ensure these do not get wiped when fmake's code is removed from the tree. These tests are currently being skipped because they detect the underlying make is not fmake and thus disable themselves -- and the reason is that some of the tests fail, possibly due to legitimate bugs. Enabling them to run against bmake will come separately. Lastly, it would be ideal if these tests were fed upstream but they are not ready for that yet. In the interim, just put them under usr.bin/bmake/ while we sort things out. The existence of a different unit-tests directory within here makes me feel less guilty about this. Change confirmed working with a clean amd64 build. r266104: Undo changes to the generated Makefile. Move tests directory to proper location, including updating the test to work in the more-fragile fmake -> bmake bootstrap environment. r266147: Makefile.inc is also included by the tests subdirectory, which results in SUBDIRS having tests added to it, which fails. Work around this by checking to make sure tests exists before adding it to subdirs and work to get the generated file fixed so we can rename Makefile.inc to something else so it isn't automatically included by subdirs...
* MFC r275721:marcel2014-12-282-5/+6
| | | | | | | The size of the first level reference count table is given in terms of the number of clusters it occupies. Bump the version number of mkimg.
* MFC bmake changes to stable/10 ↵ngie2014-12-273-5/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (r255285,r255916,r258113,r258114,r261212,r266760,r268437) Discussed with: sjg r255285: If MAKE_JOB_ERROR_TOKEN is set to false, do not put an error token ("E") into the job queue. This avoids closing down an entire build on failure of one branch. Probably has no use outside the context of universe/tinderbox. Reviewed by: obrien r255916: Fix Fx syntax. PR: 182269 Approved by: re@ r258113: Avoid SEGV when passed NULL for list r258114: Don't SEGV when Hash_Table is uninitialized r261212: Merge bmake-20140101 from vendor r266760: Portmgr no longer need the UL hack. Reviewed by: obrien r268437: Update to bmake-20140620 Main change is detection of malformed variable references. Reviewed by: obrien
* MFC r275838;pfg2014-12-231-1/+4
| | | | | | | | | sed: Bounds check the file path used in the 'w' command. Modified version of a diff from Sebastien Marie to prevent a crash found with the afl fuzzer. Obtained from: OpenBSD (CVS Rev. 1.37)
* MFC r274549:trasz2014-12-211-7/+2
| | | | | | | Make it possible to do "iscsictl -Rt xxx -p yyy", to remove a session that matches both -t and -p. Sponsored by: The FreeBSD Foundation
* MFC: r274960 (slightly modified)brueffer2014-12-191-0/+18
| | | | | | | | | Limit descriptors and enter capability mode. Since the header was renamed in HEAD, this commit includes sys/capability.h. Differential: D1009 Reviewed by: jonathan, pjd Relnotes: yes
* MFC 273053:jhb2014-12-164-2/+105
| | | | | Decode the arguments passed to _umtx_op(). In particular, decode the opcode.
* MFC r275553, r275612;pfg2014-12-162-72/+112
| | | | | | | | | | | | | | | | | patch(1): Bring fixes from OpenBSD Check fstat return value. Use off_t for file size and offsets. Avoid iterating over end of string. Introduce strtolinenum to properly check line numbers while parsing: no signs, no spaces, just digits, 0 <= x <= LONG_MAX Properly validate line ranges supplied in diff file to prevent overflows. Also fixes an out of boundary memory access because the resulting values are used as array indices. PR: 195436 Obtained from: OpenBSD
* MFC r275531, r275581, r275582;pfg2014-12-162-11/+14
| | | | | | | | | | patch(1): Small changes to sync with OpenBSD Update OpenBSD CVS revision tag for our r255232. Prefer setvbuf() to setlinebuf(). Small space changes, mostly to keep in sync with OpenBSD Obtained from: OpenBSD
* MFC r274495:trasz2014-12-141-3/+3
| | | | | | Add missing commas to .Xr. Sponsored by: The FreeBSD Foundation
* MFC r267265: truncate: Detect integer overflow, fix relative sizes, add tests.jilles2014-12-074-5/+421
| | | | | | | | | | | | | The change to expand_number (r204654) broke detection of too large sizes and relative sizes ('+'/'-'). Also add some tests. The usr.bin/truncate/Makefile is slightly different in the MFC because src.opts.mk does not exist in stable/10. PR: 190735 Submitted by: Kirk Russell
* MFC r275162:kevlo2014-12-011-3/+3
| | | | | | Init array field in the proper place. Obtained from: OpenBSD
* MFC r273822:trasz2014-11-291-0/+1
| | | | | | | Fix iscsictl(8) and ctld(8) to correctly handle Windows newlines (CRLF) in iscsi.conf and ctl.conf. Sponsored by: The FreeBSD Foundation
* MFC r274116:dteske2014-11-255-0/+1052
| | | | | | | | | | | | | | | | | Add new libraries/utilities for data throughput visualization. dpv(3): dialog progress view library dpv(1): stream data from stdin or multiple paths with dialog progress view figpar(3): configuration file parsing library MFC r274120, r274121, r274123, r274124, r274144, r274146, r274159, r274192, r274203, r274209, r274226, r274270, and r274851: Fixes following r274116 Reviews: D714 Relnotes: New libdpv/libfigpar and dpv(1) utility Reviewed by: jelischer, shurd Discussed at: MeetBSD California 2014 Vendor/Dev Summit Discussed on: -current Thanks to: ngie, ian, jelischer, shurd, bapt
* MFC r274847:dim2014-11-251-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix the following -Werror warnings from clang 3.5.0, while building usr.bin/locate: usr.bin/locate/locate/util.c:249:29: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i)); ^ usr.bin/locate/locate/util.c:249:29: note: remove the call to 'abs' since unsigned values cannot be negative MAXPATHLEN, abs(i) < abs(htonl(i)) ? i : htonl(i)); ^~~ usr.bin/locate/locate/util.c:274:32: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] MAXPATHLEN, abs(word) < abs(htonl(word)) ? word : ^ usr.bin/locate/locate/util.c:274:32: note: remove the call to 'abs' since unsigned values cannot be negative MAXPATHLEN, abs(word) < abs(htonl(word)) ? word : ^~~ The problem is that ntohl() always returns an unsigned quantity. In this case, it's expected to be cast back to a signed integer, but to stop complaints about abs() we just store it into an integer, and don't call ntohl() again. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D1196
* MFC r273464:trasz2014-11-222-2/+2
| | | | | | Whitespace fixes. Sponsored by: The FreeBSD Foundation
* bsdgrep: Work-around for segmentation fault.emaste2014-11-201-1/+1
| | | | | | | | Fix by David Carlier. MFC of r272127 Obtained from: HardenedBSD PR: 167921
* MFC r274410: Fix for behaviour of SEEK_DATA on ZFS.marcel2014-11-171-3/+5
|
* MFC r260800:smh2014-11-131-5/+10
| | | | | | | | | | Fix a regression introduced in r237618 MFC r260801: Re-work r260800 to include other signals which start with 'I' such as ILL, INFO etc. Sponsored by: Multiplay
* MFC r273507: Sync with NetBSD.delphij2014-11-085-17/+41
|
* MFC r273548emax2014-11-063-89/+44
| | | | | | | | Change the code to use the openpty(3) API which uses the pts(4) driver instead of the pty(4) driver. PR: 184597 Submitted by: tobias.rehbein
* MFC r270650 (this is what should have been committed in r273497):ngie2014-10-233-6/+6
| | | | | | | | | | | Convert LIBCURSES to LIBNCURSES to fix "make checkdpadd" Also, add a missing LIBPANEL dependency for lldb Approved by: rpaulo (mentor) Suggested by: brooks Phabric: D675 (as part of a larger diff) PR: 192762
* MFC r263264 (by glebius):ngie2014-10-234-124/+145
| | | | | | Make talk(1) capable of displaying UTF-8 characters. Sponsored by: Nginx, Inc.
* MFC r271692:markj2014-10-221-1/+1
| | | | Fix a typo.
* Merge: r269884rodrigc2014-10-112-43/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | Complete the usr.bin/yacc kyua integration work I originally submitted via r268811 - Install the Kyuafile by adding FILES to FILESGROUPS - Run the testcases with an unprivileged user Some of the testcases depend upon behavior that's broken when run as root on FreeBSD because of how permissions are treated with access(2) vs eaccess(2), open(2), etc - Simplify the test driver to just inspect the exit code from run_test because it now exits with 0 if successful and exits with !0 if unsuccessful - Don't do ad hoc temporary directory creation/deletion; let Kyua handle that - Add entries for files removed in r268811 to OptionalObsoleteFiles.inc PR: 191020 X-MFC with: r268811 Approved by: jmmv (mentor) Reviewed by: bapt Sponsored by: EMC / Isilon Storage Division
* Merge: r258931rodrigc2014-10-111-2/+6
| | | | | | | | | Add missing bits from the vendor's 2005-05-04 change to contrib/byacc/makefile.in ("add YYPATCH here so it can be tested by applications") so that applications have a hope of detecting newer FreeBSD YACC output from an older one. Submitted by: Juniper Networks
* Merge: r268811rodrigc2014-10-1135-15076/+352
| | | | | | | Update to byacc 20140715 PR: 191020 Submitted by: gcooper (yaneurabeya@gmail.com)
* MFC r272762: Correct scale factor for T terabyte suffixemaste2014-10-111-1/+1
| | | | PR: 194250
* MFC r271410:hrs2014-10-091-6/+10
| | | | Fix header output when -P is specified and (ncpus - 1) != maxid.
* MFC r266177:hrs2014-10-091-3/+6
| | | | | | | - Do not override sin6_scope_id in LLA when it is already set to non-zero. This fixes destination list in output of netstat -r. - Plug a memory leak. - Add RTM_VERSION check.
* MFC r266494:hrs2014-10-091-10/+7
| | | | | | | - Fix a bug which can make sysctl() fail when -F is specified. - Increase WID_IF_DEFAULT() from 6 to 8 (the default for AF_INET6) because we have interfaces with longer names than 6 chars like epairN{a,b}. - Style fixes.
* MFC r271307:ae2014-10-091-1/+1
| | | | | | | | Add the ability to set `prefer_source' flag to an IPv6 address. It affects the IPv6 source address selection algorithm (RFC 6724) and allows override the last rule ("longest matching prefix") for choosing among equivalent addresses. The address with `prefer_source' will be preferred source address.
* MFC r272485: Fill cyclinder, head and sector fields for the EBR,marcel2014-10-086-21/+58
| | | | | | MBR and PC98 schemes. Requested by: gjb
* MFC 272384:marcel2014-10-082-94/+586
| | | | | | Improve performance of mking(1). Requested by: gjb
* MFC 272198, 272217:marcel2014-10-083-20/+127
| | | | | | | | | Add 3 long options (--version, --formats & --schemes) for getting information about mkimg itself. Requested by: gjb Relnotes: yes
* MFC 271965, 272072, 272086: Add QCOW v1 & v2 supportmarcel2014-10-082-0/+370
| | | | | | Requested by: gjb Relnotes: yes
* MFC: r272398bapt2014-10-061-1/+1
| | | | | | | | | | Make sure to not skip any argument when converting from deprecated +POS1, -POS2 to -kPOS1,POS2, so that sort +0n gets translated to sort -k1,1n as it is expected PR: 193994 Submitted by: rodrigo MFC after: 3 days
* MFC r272288,272289:delphij2014-10-021-2/+1
| | | | | | | | | | | When setting environment variables in the atrun script, use the "export foo=bar" form instead of "foo=bar; export foo" since the former allows the shell to catch variable names that are not valid shell identifiers. This will cause /bin/sh to exit with an error (which gets mailed to the at user) and it will not run the script. Obtained from: OpenBSD (r1.63 millert) Approved by: re (gjb)
* MFC 271881: Fix partition alignment and image rounding when any ofmarcel2014-09-2310-54/+54
| | | | | | -P (block size), -T (track size) or -H (number of heads) is given. Approved by: re@ (gjb)
* MFC 271482: Add support for adding empty partition entries.marcel2014-09-222-1/+29
| | | | | Relnotes: yes Approved by: re@ (gjb)
* Be compatible with boot code that starts right after the disk label inmarcel2014-09-181-1/+4
| | | | | | | | | | | | | | | | | | | | | | the second sector by only clearing the amount of bytes needed for the disklabel in the second sector. Previously we were clearing exactly 1 sector worth of bytes and as such writing over boot code that may have been there. Since we do support more than 8 partitions, make sure to set all fields in d_partitions. For the first 8 partitions this is unneeded, but for partitioons 9 and up this compensates for the fact that we don't clear an entire sector anymore. Obviously, one cannot use more than 8 partitions when using boot code that starts right after the disk label. Relevant GRNs: 107879 - Employ unused bytes after the disklabel in the second sector. 189500 - Revert the part of change 107879 that employs the unused bytes after the disklabel in the 2nd sector for boot code. Obtained from: Juniper Networks, Inc. Approved by: re@ (gjb)
* Fix checksum calculation:marcel2014-09-181-4/+7
| | | | | | | | | | | 1. Iterate over all partitions counted in the label, which can be more than the number of partitions given to mkimg(1). 2. Start the checksum from the beginning of the label; not the beginning of the bootarea. Tested with bsdlabel(8). Approved by: re@ (rodrigc)
* MFC r271445,r271446,r271560:allanjude2014-09-181-2/+3
| | | | | | | | | | Improve markup and language throughout the ctl.conf man page MFC r271543: Add the new iscsi(4) man page Cross reference it from iscsid(8) and iscsictl(8) Approved by: re (gjb), bcr (mentor)
* MFC r271436:trasz2014-09-151-2/+2
| | | | | | | Fix typo. Approved by: re (marius) Sponsored by: The FreeBSD Foundation
* MFC r267176, r267181, r268445 (ATF-related commits):ngie2014-09-091-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Phabric: https://reviews.freebsd.org/D706 Approved by: rpaulo (mentor) Approved by: re (gjb) Reviewed by: jmmv Sponsored by: EMC / Isilon Storage Division r267176: Add the *_TESTS_SH_SED_* functionality to atf.test.mk. This exists already in plain.test.mk and tap.test.mk and should have been added to atf.test.mk too when the feature was first introduced. (It is probably time to address the related TODOs but I will do that separately.) r267181: Move atf-sh from /usr/bin/ to /usr/libexec/ In r266650, we made libatf-c and libatf-c++ private libraries so that no components outside of the source tree could unintendedly depend on them. This change does the same for the "atf-sh library" by moving the atf-sh interpreter from its public location in /usr/bin/ to the private location in /usr/libexec/. Our build system will ensure that our own test programs use the right binary, but users won't be able to depend on atf-sh by "mistake". Committing this now to ride the UPDATING notice added with r267172 today. r268445: Fix atf-sh's integration_test With the move of atf-sh into /usr/libexec in r267181, some of the tests in the integration_test program broke because they could not execute atf-sh from the path any longer. This slipped through because I do have a local atf installation in my home directory that appears in my path, hence the tests could still execute my own version. Fix this by forcing /usr/libexec to appear at the beginning of the path when attempting to execute atf-sh. To make upgrading easy (and to avoid an unnecessary entry in UPDATING), make integration_test depend on the Makefile so that a rebuild of the shell script is triggered. This requires a hack in the *.test.mk files to ensure the Makefile is not treated as a source to the generated program. Ugly, I know, but I don't have a better way of doing this at the moment. Will think of one once I address the TODO in the *.test.mk files that suggests generalizing the file generation functionality. PR: 191052 Reviewed by: Garrett Cooper
* MFC r270927:ae2014-09-081-1/+1
| | | | | | | Add the reverse part to rule #9. Also change its description in the netstat(8) output. Approved by: re (gjb)
* MFC r270348:markj2014-09-061-6/+6
| | | | | | | | | | | | | | Add some missing checks for unsupported interfaces (e.g. pflog(4)) when handling ioctls. While here, remove duplicated checks for a NULL ifp in in6_control(): this check is already done near the beginning of the function. MFC r270349: Suppress warnings when retrieving protocol stats from interfaces that don't support IPv6 (e.g. pflog(4)). PR: 189117 Approved by: re (gjb)
* MFC 270674:jhb2014-09-051-4/+6
| | | | | | | Clarify that the -c argument clears the list of tracepoints specified by -t (it does not clear all tracepoints). Approved by: re (gjb for 10)
* MFC r270647: Add references to vt(4) and the configuration files in /usr/shase2014-09-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | MFC r270653: Update man-pages to correctly refer to changed pathes and namin MFC r270657: More man pages that need to know about vt in addition to syscon MFC r270659: (by pluknet@) Missed comma. MFC r270660: Back-out the references to vt(4) from this man-page. It appears MFC r270933: Add references to vt(4) to further man-pages. MFC r270934: Final patches to the tools used to convert syscons keymaps for MFC r270935: Add vt(4) support to the console initialisation script, specifi Second batch of MFCs to add support for Unicode keymaps for use with vt(4). It contains the following changes: - Add references to vt(4) to relevant man-pages. - Update comment in defaults/rc.conf to mention vt - Update rc.d/syscons to warn about syscons keymaps used under vt. An attempt is made to identify the vt keymap to load instead. - Minor changes to the conversion tool based on mail comments on keymaps. Relnotes: yes
OpenPOWER on IntegriCloud