summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Use defines to improve claritybapt2015-05-011-5/+5
| | | | MFC after: 2 weeks
* col: fixing 25 year old bugbapt2015-05-011-4/+4
| | | | | | | | | | Makes col(1) respect POSIX again for escape sequences as decribed in its manpage The bug was introduced in CSRG in 1990 This also reverts r280911 Differential Revision: https://reviews.freebsd.org/D2424 Reviewed by: jhb MFC after: 2 weeks
* Actually add c++filt's Makefileemaste2015-04-301-0/+17
| | | | | | Missed in r282285 Pointy hat to: emaste
* Add ELF Tool Chain's c++filt to the buildemaste2015-04-301-0/+2
| | | | | | Differential Revision: https://reviews.freebsd.org/D2408 Reviewed by: brooks, imp Sponsored by: The FreeBSD Foundation
* Remove spurious period.trasz2015-04-291-1/+1
| | | | | MFC after: 1 month Sponsored by: International OCD Foun^W^W^WThe FreeBSD Foundation
* Make rctl(8) more user-friendly when RACCT/RCTL is disabled for some reason.trasz2015-04-291-5/+42
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* The Dutch queen abdicated two years ago, the national holiday associated withrene2015-04-271-1/+1
| | | | her birthday is now associated with the birthday of her son.
* Add myself (oshogbo) to calendar.freebsd and committers-src.dot.oshogbo2015-04-271-0/+1
| | | | Approved by: pjd (mentor)
* hexdump: Don't use uninitialized struct stat.jilles2015-04-261-1/+1
|
* o Properly init prevtime, so that we don't print bogus value in thesobomax2015-04-251-2/+13
| | | | | | | | first entry reported by the relative mode (-R). o Properly print negative offsets, which I guess may happen if records get re-ordered somehow, possibly due to the locking. Right now we report huge bogus diff (i.e. 2 seconds or so).
* Try alternate addresses more agressively.delphij2015-04-251-9/+127
| | | | | | | | | | | | | | | Attempt to connect to alternate addresses if the connect doesn't succeed in 180ms, and cut wait time between connection attempts in half for each additional, if no connection was established. Take the first connection to succeed and close the others. This makes whois more responsive when e.g. IPv6 service took long time or fail to respond. PR: 158125 Submitted by: Mark Andrews <marka isc org> (with changes from me) MFC after: 2 weeks
* Make nfsstat(1) build with WARNS=6.trasz2015-04-242-11/+0
| | | | Sponsored by: The FreeBSD Foundation
* Remove oldnfs support from nfsstat(1).trasz2015-04-232-429/+122
| | | | | Reviewed by: rmacklem@ (earlier version) Sponsored by: The FreeBSD Foundation
* Reassign copyright statements on several files from Advancedjhb2015-04-235-5/+5
| | | | | | | Computing Technologies LLC to Hudson River Trading LLC. Approved by: Hudson River Trading LLC (who owns ACT LLC) MFC after: 1 week
* Merge bmake-20150418sjg2015-04-212-36/+84
| | | | PR: 199486
* patch(1): small include changes.pfg2015-04-203-4/+5
| | | | | | Mostly to match OpenBSD, no functional change. Obtained from: OpenBSD
* find.1: Add missing whitespace:eadler2015-04-201-1/+1
| | | | Obtained from: Dragonfly (dee38d02d51cc8316f82b0263158d2546f2398bc)
* rpcgen: fix use use of strcmpeadler2015-04-191-1/+1
| | | | | strcmp only guarantee that it will return at least 1 if the string B is greater than that of string A.
* calendar: remove useless checkeadler2015-04-191-3/+0
| | | | | | | | lineline checked for 0 in the while loop condition. There is no need to check for it additionally in the body. CID: 1288959 MFC After: 1 week
* Remove some oldnfs remnants.trasz2015-04-181-7/+0
| | | | | | Differential Revision: https://reviews.freebsd.org/D2287 Reviewed by: rmacklem@ Sponsored by: The FreeBSD Foundation
* r281540 was upstreamed as NetBSD r1.108 of gzip.c, note it as merged.delphij2015-04-161-1/+1
|
* Fix libxo output from uptime commandallanjude2015-04-162-8/+18
| | | | | | | | | | | | the libxo output for uptime returned multiple 'uptime' keys, one each for number of days, hours, and minutes of uptime. This is invalid JSON. This patch makes the output the raw number of seconds, as well as adding keys for the individual unit values A string of the original output from the plain-text uptime command is also added Differential Revision: https://reviews.freebsd.org/D2063 Reviewed by: jmg Approved by: marcel Sponsored by: ScaleEngine Inc.
* Fix SIGINFO race causing final results to be lost to stderr.bdrewery2015-04-161-0/+11
| | | | | | | | | | | If a SIGINFO comes in after the file is read then the 'siginfo' flag is set to 1 and the next call to show_cnt() (at exit) would print the data to stderr rather than the expected stdout. This was found with spamming Poudriere with SIGINFO which caused a 'wc -l' execution to return no data rather than an expected number. MFC after: 2 weeks
* Remove extra flags from r250462.bdrewery2015-04-161-1/+1
| | | | MFC after: 1 week
* Remove the const qualifier from iconv(3) to comply with POSIX:tijl2015-04-151-2/+1
| | | | | | | | | | http://pubs.opengroup.org/onlinepubs/9699919799/functions/iconv.html Adjust all code that calls iconv. PR: 199099 Exp-run by: antoine MFC after: 2 weeks
* When reading in the original file name from gzip header, we readdelphij2015-04-151-2/+5
| | | | | | | | | | | | | | | | in PATH_MAX + 1 bytes from the file. In r281500, strrchr() is used to strip possible path portion of the file name to mitigate a possible attack. Unfortunately, strrchr() expects a buffer that is NUL-terminated, and since we are processing potentially untrusted data, we can not assert that be always true. Solve this by reading in one less byte (now PATH_MAX) and explicitly terminate the buffer after the read size with NUL. Reported by: Coverity CID: 1264915 X-MFC-with: 281500 MFC after: 13 days
* Disable truss, gprof, and lint on arm64, they don't build.andrew2015-04-141-0/+6
| | | | Sponsored by: The FreeBSD Foundation
* ipcs: fix builds that use gcceadler2015-04-142-4/+0
| | | | | | | gcc gets annoyed by duplicate declarations Reported by: sbruno Reviewed by: sbruno
* ipcs: fix warnings (WARNS=1 -> WARNS=6)eadler2015-04-134-40/+39
| | | | | | | | | - fix shadow warnings - change type from off_t to size_t which is more correct and avoids signed/unsigned compare - use new initializer format to avoid "missing values" warning Reviewed by: jhb
* Sync with NetBSD:delphij2015-04-132-10/+20
| | | | | | | - Mention xz(1) in gzip(1). - Strip away path from header name when decompressing. MFC after: 2 weeks
* Add libxo(3) support to iscsictl(8).trasz2015-04-124-165/+228
| | | | | | | PR: 198396 Submitted by: Marie Helene Kvello-Aune <marieheleneka at gmail.com> MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Update nvi to 2.1.3 which fixes the data corruption when locale conversionbapt2015-04-101-1/+1
| | | | failed
* Remove uneeded link to libkiconvbapt2015-04-091-1/+1
|
* Convert mt(1) and libmt to LIBADDbapt2015-04-091-2/+1
| | | | | | | While here fix missing link to libbsdxml for libmt Fix overlinking in mt(1) Make add an indirect libmt dependency on bsdxml to allow static linking if needed
* Remove uneeded sbuf headerbapt2015-04-091-1/+0
|
* iscsictl(8) does not actually needs to be linked to libcam nor libutilbapt2015-04-091-2/+0
|
* Avoid escaping EOL for line continuationemaste2015-04-091-1/+1
| | | | Reported by: kib
* ar: Disallow directory traversalemaste2015-04-091-1/+9
| | | | | | | | | | | | | | | | | | | | Set ARCHIVE_EXTRACT_SECURE_SYMLINKS and ARCHIVE_EXTRACT_SECURE_NODOTDOT as in bsdtar to prevent extraction of archive entries whose pathnames contain .. or whose target directory would be altered by a symlink. Also disallow absolute pathnames. We don't currently provide an option to disable this behaviour (as bsdtar's -P does). It is unlikely to be a problem in practice for ar(1), but the -P option is not currently used and available if we want to consider it for this purpose. Differential Revision: https://reviews.freebsd.org/D1524 Reported by: Alexander Cherepanov <cherepan@mccme.ru> Approved by: delphij Obtained from: ELF tool chain ar, Ticket #474 MFC after: 1 week Relnotes: Yes Sponsored by: The FreeBSD Foundation
* Move the 32-bit compatible procfs types from freebsd32.h to <sys/procfs.h>jhb2015-04-081-18/+0
| | | | | | | | | | | | | | | and export them to userland. - Define __HAVE_REG32 on platforms that define a reg32 structure and check for this in <sys/procfs.h> to control when to export prstatus32, etc. - Add prstatus32_t and prpsinfo32_t typedefs for the 32-bit structures. libbfd looks for these types, and having them fixes 'gcore' in gdb of a 32-bit process on a 64-bit platform. - Use the structure definitions from <sys/procfs.h> in gcore's elf32 core dump code instead of duplicating the definitions. Differential Revision: https://reviews.freebsd.org/D2142 Reviewed by: kib, nathanw (powerpc bits) MFC after: 1 week
* patch: Bring small updates from OpenBSDpfg2015-04-071-19/+37
| | | | | | | | | | | Prevent null pointer dereference on empty input files when diff requires a specific version. Fix division by zero for files with long lines (> 1024) in Plan B mode by supporting arbitrarily long lines. Obtained from: OpenBSD (CVS Rev 1.41, 1.42) MFC after: 1 week
* Check l2cap socket initialisation and define L2CAP_SOCKET_CHECKEDtakawata2015-04-074-1/+4
| | | | This will fix build.
* Fix missing AUTHOR section for jot(1), rs(1), and lam(1)allanjude2015-04-073-3/+9
| | | | | | | | | PR: 196786 Differential Revision: https://reviews.freebsd.org/D2115 Submitted by: John A. Kunze (Author) Approved by: wblock (mentor) MFC after: 1 week Sponsored by: ScaleEngine Inc.
* The code says "or", not "either or". So fix the documentation.tuexen2015-04-071-2/+2
| | | | MFC after: 1 week
* Like it was already done for 'netstat -i', drop the kvm(3) supportglebius2015-04-072-394/+14
| | | | | | | | | | | | | | in 'netstat -r'. The netstat/route.c was the last abuser of struct ifnet and struct rtentry in the tree. With this change if_var.h can become kernel only include, _WANT_RTENTRY can go away and projects/ifnet and projects/routing can go forward. Differential Revision: https://reviews.freebsd.org/D2242 Reviewed by: melifaro, gnn Sponsored by: Nginx, Inc. Sponsored by: Netflix
* Remove custom getdelim(3) and fix a small memory leak.pfg2015-04-073-72/+28
| | | | | | | Originally from Andre Smagin. Obtained from: OpenBSD MFC after: 1 week
* sort(1): Cleanups and a small memory leak.pfg2015-04-071-16/+9
| | | | | | | | | | | | Remove useless check for leading blanks in the month name. The code didn't adjust len after stripping blanks so even if a month *did* start with a blank we'd end up copying garbage at the end. Also convert a malloc + memcpy to strdup and fix a memory leak in the wide char version if mbstowcs() fails. Originally from Andre Smagin. Obtained from: OpenBSD (CVS rev. 1.2, 1.3) MFC after: 1 week
* lockf(1): add a reference to lockf(3).markj2015-04-061-0/+1
| | | | | Submitted by: Conrad Meyer MFC after: 1 week
* o Make net.inet6.ip6.mif6table return special API structure, that doesn'tglebius2015-04-062-66/+19
| | | | | | | | | | | | | | | | contain kernel pointers, and instead has interface index. Bump __FreeBSD_version for that change. o Now, netstat/mroute6.c no longer needs to kvm_read(3) struct ifnet, and no longer needs to include if_var.h Note that this change is far from being a complete move of IPv6 multicast routing to a proper API. Other structures are still dumped into their sysctls as is, requiring userland application to #define _KERNEL when including ip6_mroute.h and then call kvm_read(3) to gather all bits and pieces. But fixing this is out of scope of the opaque ifnet project. Sponsored by: Nginx, Inc. Sponsored by: Netflix
* Stop including if_var.h from userland.glebius2015-04-065-5/+0
| | | | Sponsored by: Nginx, Inc.
* sort: style knits / cleanups.pfg2015-04-062-2/+2
| | | | | | Minor cleanups that got accidentally reverted. Obtained from: OpenBSD
OpenPOWER on IntegriCloud