aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* rm, find -delete: fix removing symlinks with uchg/uappnd set.Jilles Tjoelker2009-05-301-1/+1
| | | | | | | | | | | | | | | Formerly, this tried to clear the flags on the symlink's target instead of the symlink itself. As before, this only happens for root or for the unlink(1) variant of rm. PR: bin/111226 (part of) Submitted by: Martin Kammerhofer Approved by: ed (mentor) MFC after: 3 weeks Notes: svn path=/head/; revision=193087
* Use prototype for usage(). This makes perror(1) WARNS=6 clean.Xin LI2009-05-281-2/+2
| | | | | | | Approved by: gnn Notes: svn path=/head/; revision=192997
* Correct off-by-one issue in truss(1) which happens when system call numberXin LI2009-05-289-9/+9
| | | | | | | | | | | is nsyscalls. PR: bin/134916 Submitted by: Steven Hartland <steven hartland multiplay co uk> MFC after: 2 weeks Notes: svn path=/head/; revision=192943
* Update ee(1) in the base system to version 1.5.0.Ed Schouten2009-05-276-7/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This version is now licensed under a 2-clause BSD license, instead of the Artistic license. I've reverted a lot of local modifications we made to ee, because they have been integrated upstream as well. Only local modifications include: - $FreeBSD$ ID. - Pathname to init.ee. - catopen() call, to honor LC_MESSAGES instead of LANG. To keep SVN happy, I'm putting an application/octet-stream mime type on the KOI8 translations. Reviewed by: current@ Notes: svn path=/head/; revision=192914
| * Vendor import of ee 1.4.2.vendor/ee/1.4.2Ed Schouten2009-05-2617-15192/+0
| | | | | | | | | | Notes: svn path=/vendor/ee/dist/; revision=192830 svn path=/vendor/ee/1.4.2/; revision=192831; tag=vendor/ee/1.4.2
* | Delete the old USB stack. The new stack has settled in and has all theAndrew Thompson2009-05-271-4/+1
| | | | | | | | | | | | | | drivers/functionality and then some. Notes: svn path=/head/; revision=192901
* | Add support for the arbitrary named jail parameters used by jail_set(2)Jamie Gritton2009-05-272-11/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and jail_get(2). Jail(8) can now create jails using a "name=value" format instead of just specifying a limited set of fixed parameters; it can also modify parameters of existing jails. Jls(8) can display all parameters of jails, or a specified set of parameters. The available parameters are gathered from the kernel, and not hard-coded into these programs. Small patches on killall(1) and jexec(8) to support jail names with jail_get(2). Approved by: bz (mentor) Notes: svn path=/head/; revision=192896
* | Merge local changes to ee(1) into contrib space.Ed Schouten2009-05-268-6540/+6
| | | | | | | | | | | | | | | | | | | | | | The source file, manual page and English translation are now directly obtained from the contrib/ directory. This makes it a lot easier to merge a newer version of ee(1) into the tree. Thanks to: des and jhb Notes: svn path=/head/; revision=192856
* | Remove unused curses replacement implementation from ee(1) sources.Ed Schouten2009-05-262-3989/+0
| | | | | | | | Notes: svn path=/head/; revision=192846
* | Bump the document date to reflect the recent address range enhancements.Brian Somers2009-05-251-1/+1
| | | | | | | | | | | | | | Suggested by: throdes Notes: svn path=/head/; revision=192773
* | Fix kdump build when building it by hand.Ed Schouten2009-05-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | I don't entirely like this approach, but it will only be temporarily, namely until we get rid of COMPAT_43TTY. I do want <sys/ioctl_compat.h> to cause a compiler error when included, because it's just there for binary compatibility. Reported by: Andrzej Tobola <ato iem pw edu pl> Notes: svn path=/head/; revision=192768
* | Add the "-4" option to nfsstat, so that it will reports statsRick Macklem2009-05-252-7/+369
| | | | | | | | | | | | | | | | | | for the experimental nfs subsystem when that option is specified. Approved by: kib (mentor) Notes: svn path=/head/; revision=192762
* | Implement "addr1,+N" ranges - not dissimilar to grep's -A switch.Brian Somers2009-05-254-18/+39
| | | | | | | | | | | | | | | | PR: 134856 Submitted by: Jeremie Le Hen - jeremie at le-hen dot org Notes: svn path=/head/; revision=192732
* | A few more style changes as well as a more broad allowance forGeorge V. Neville-Neil2009-05-201-27/+19
| | | | | | | | | | | | | | | | | | | | errors to be given by the caller. Change output to be easier for use in scripts. Submitted by: bce Notes: svn path=/head/; revision=192486
* | o style.Makefile(5): remove SRCS.Maxim Konovalov2009-05-201-1/+0
| | | | | | | | Notes: svn path=/head/; revision=192423
* | Fix a few style(9) nits.George V. Neville-Neil2009-05-191-7/+9
| | | | | | | | | | | | | | Submitted by: danfe Notes: svn path=/head/; revision=192407
* | Add a new program, perror, which takes an errno as a command line argumentGeorge V. Neville-Neil2009-05-194-0/+133
| | | | | | | | | | | | | | | | and outputs the associated textual message in the same way that perror(3) would if called within a program. Notes: svn path=/head/; revision=192398
* | find: do not silently disable -L when -delete is usedAndriy Gapon2009-05-191-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First of all, current behavior is not documented and confusing, and it can be very dangerous in the following sequence: find -L . -type l find -L . -type l -delete (the second line is even suggested by find(1)). Instead simply refuse to proceed when -L and -delete are both used. A descriptive error message is provided. The following command can be safely used to remove broken links: find -L . -type l -print0 | xargs rm -0 To do: update find(1) PR: bin/90687 Obtained from: Anatoli Klassen <anatoli@aksoft.net> Approved by: jhb (mentor) Notes: svn path=/head/; revision=192381
* | Reduce diff against my local version: replace malloc+memset() cases to calloc().Xin LI2009-05-1510-22/+12
| | | | | | | | Notes: svn path=/head/; revision=192153
* | Fix print_syscall_ret parameter order.Diomidis Spinellis2009-05-131-1/+1
| | | | | | | | Notes: svn path=/head/; revision=192041
* | Fix compilation error introduced in r192025.Diomidis Spinellis2009-05-131-1/+2
| | | | | | | | Notes: svn path=/head/; revision=192040
* | Add -c option to summarize number of calls, errors, and system time.Diomidis Spinellis2009-05-1213-145/+247
| | | | | | | | | | | | | | Reviewed by: alfred Notes: svn path=/head/; revision=192025
* | Add support for old TTY ioctls to kdump.Ed Schouten2009-05-091-0/+1
| | | | | | | | | | | | | | | | | | | | At first I allowed ioctl_compat.h to be included, but it just returned an empty file. I had to do this, to keep kdump happy. I really want to raise a compiler error when including this header, so now it will just throw an error if you don't set COMPAT_43TTY. Notes: svn path=/head/; revision=191936
* | Add my birthdaySteven Kreuzer2009-05-071-0/+1
| | | | | | | | | | | | | | Approved by: wxs (mentor) Notes: svn path=/head/; revision=191886
* | Add my birthday to the calendar.Rene Ladan2009-05-051-0/+1
| | | | | | | | | | | | | | Approved by: remko Notes: svn path=/head/; revision=191831
* | Add myself as a mentee of dwmalone for the committers graph. Also add mySean Nicholas Barkas2009-05-051-0/+1
| | | | | | | | | | | | | | | | | | birthday to the calendar. Approved by: dwmalone (mentor) Notes: svn path=/head/; revision=191822
* | Merge vendor/file/dist@191739, bringing FILE 5.00 to 8-CURRENT.David E. O'Brien2009-05-042-242/+2
|\ \ | | | | | | | | | Notes: svn path=/head/; revision=191771
| * | Virgin import of FILE 3.32vendor/file/3.32David E. O'Brien2000-11-05129-8237/+0
| | | | | | | | | | | | | | | Notes: svn path=/vendor/file/dist/; revision=68349 svn path=/vendor/file/3.32/; revision=68351; tag=vendor/file/3.32
* | | Mention -h in usage() and manpage. Rename term_{r,e} to term_{so,se}.Roman Divacky2009-05-022-25/+27
| | | | | | | | | | | | | | | | | | | | | | | | Suggested by: ru Approved by: ed (mentor) Notes: svn path=/head/; revision=191737
* | | Fixed multi-byte character support to actually work.Ruslan Ermilov2009-04-301-6/+6
| | | | | | | | | | | | Notes: svn path=/head/; revision=191690
* | | Fixed missing dependency.Ruslan Ermilov2009-04-301-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=191687
* | | Report the next directory being scanned when a ^T is pressed (or anyWarner Losh2009-04-301-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SIGINFO). Provides some progress report for the impatient. This won't report that we're blocking in our walk due to disk/network problems, however. There's no really good way to report that condition that I'm aware of... Notes: svn path=/head/; revision=191677
* | | Add MLDv2 statistic IDs to netstat for IPv6 stack.Bruce M Simpson2009-04-291-3/+3
| | | | | | | | | | | | Notes: svn path=/head/; revision=191652
* | | Couple of changes based on feedbackRoman Divacky2009-04-211-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Change mr/me to so/se [1]. o Introduce a -h option to disable highlighting. [2] o Spell STDOUT_FILENO as such and pass NULL to tgetent() to handle the case of unset TERM. [3] Suggested by: naddy mips.inka.de (Christian Weisgerber) [1] Requested by: danfe, deischen [2] Suggested by: jmallett [3] Approved by: ed (mentor) Notes: svn path=/head/; revision=191364
* | | Bracket struct mfc and struct rtdetq with #ifdef _KERNEL.Bruce M Simpson2009-04-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Match the bracketing in netstat. Since the cleanup of MROUTING, ports have broken because they expect to include <netinet/ip_mroute.h> without including <sys/queue.h>. Fix breakage at source. The real fix, of course, is to fix the MROUTING APIs by blowing them away and replacing them with something else... Notes: svn path=/head/; revision=191356
* | | Implement highlighting of today in month view of cal/ncal just likeRoman Divacky2009-04-202-14/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gnu cal does. This is currently disabled for year view because of hard coded padding in that case. This will hopefully be fixed soon. Reviewed by: Simon 'corecode' Schubert <corecode fs.ei.tum.de> Approved by: ed Notes: svn path=/head/; revision=191330
* | | Pass int arguments to auditon(2)'s A_GETCOND API rather than longRobert Watson2009-04-191-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | arguments. This change should be MFC'd with OpenBSM 1.1 since they are interdependent. MFC after: 2 weeks Obtained from: TrustedBSD Project Sponsored by: Apple, Inc. Notes: svn path=/head/; revision=191297
* | | When compiled for the release crunches, be a bitTim Kientzle2009-04-192-9/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | more selective about what libarchive features we pull in: * No compression support * Only cpio and ustar writing * Only cpio and tar/pax readers This reduces a statically linked, stripped binary from 900k to 680k and completely eliminates the dependency on libcrypto. Notes: svn path=/head/; revision=191262
* | | Make -lcrypto usage dependent on whether or not we're building with OpenSSL.Tim Kientzle2009-04-182-2/+9
| | | | | | | | | | | | Notes: svn path=/head/; revision=191240
* | | Merge from libarchive.googlecode.com:Tim Kientzle2009-04-1728-153/+788
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Lots of new tests. * New -n / --numeric-uid-gid option * More sanity-checking of arguments * Various Windows portability improvements * Sync up version number to 2.7.0 Notes: svn path=/head/; revision=191192
* | | Merge remaining changes from libarchive.googlecode.com:Tim Kientzle2009-04-176-42/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add xz and lzma compression options * Rename --format-options to simply --options * Add --same-owner for GNU tar compat * Add -lmd and -lcrypto to fix link * Documentation Notes: svn path=/head/; revision=191190
* | | Set options before opening the archive.Tim Kientzle2009-04-171-7/+10
| | | | | | | | | | | | | | | | | | | | | Catch and report close-time errors. Notes: svn path=/head/; revision=191189
* | | Minor portability improvement in calls to ctype.h macros.Tim Kientzle2009-04-171-2/+2
| | | | | | | | | | | | Notes: svn path=/head/; revision=191188
* | | Merge from libarchive.googlecode.com: Numerous Windows-specific build tweaks.Tim Kientzle2009-04-1710-52/+58
| | | | | | | | | | | | Notes: svn path=/head/; revision=191187
* | | Don't exit until all truss children were exit.Xin LI2009-04-131-4/+10
| | | | | | | | | | | | Notes: svn path=/head/; revision=191005
* | | Correct a bug where pr_data should have been assigned.Xin LI2009-04-131-4/+4
| | | | | | | | | | | | Notes: svn path=/head/; revision=191004
* | | Avoid infinite loops when remaking makefiles not onlyMax Khon2009-04-074-41/+26
| | | | | | | | | | | | | | | | | | | | | for Makefile targets but also for targets they depend on. Notes: svn path=/head/; revision=190821
* | | Fixup the parameters to audit_submit(3) the order is errno then returnChristian S.J. Peron2009-04-041-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | value. This bug went un-noticed for so long because EPERM == 1 MFC after: 1 week Spotted by: sson, rwatson Notes: svn path=/head/; revision=190700
* | | Signed/unsigned fixes, should be WARNS=2 clean now.Xin LI2009-04-021-3/+3
| | | | | | | | | | | | Notes: svn path=/head/; revision=190657
* | | Don't crash when we have an invalid count number.Xin LI2009-04-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR: bin/32686 Submitted by: Jaakko Heinonen <jh saunalahti.fi> MFC after: 1 week Notes: svn path=/head/; revision=190656