summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Mention the dd-like recoverdisk(1) to help folks find this great BSD command.obrien2015-07-161-0/+1
|
* mdoc: minor Xr fixesjoel2015-07-141-2/+2
|
* Prevent potential integer overflowbapt2015-07-131-2/+5
| | | | | PR: 192971 Submitted by: David Carlier <david.carlier@hardenedbsd.org>
* Prevent potential integer overflowbapt2015-07-131-2/+6
| | | | | PR: 192971 Submitted by: David Carlier <david.carlier@hardenedbsd.org>
* Since r284198, ls(1) just always depends libxo(3), not only in case ofmarius2015-07-121-2/+2
| | | | MK_LS_COLORS or !RELEASE_CRUNCH.
* sh(1): libedit has supported multibyte encodings for a while.jilles2015-07-111-4/+2
|
* mv: Improve message when moving two or more files to non-directory.jilles2015-06-281-1/+1
| | | | | | | | | | The message text is from cp, which has had a nicer message for this since 2007 (PR bin/50656). As with cp, the exit status changes from 64 to 1. PR: 201083 MFC after: 1 week
* sh: Fix some arithmetic undefined behaviour.jilles2015-06-242-4/+3
| | | | | | | Fix shifts of possibly negative numbers found with ubsan and avoid signed integer overflow when hashing an extremely long command name. MFC after: 1 week
* Continue ubreaking ``env LANG=ru_RU.KOI8-R ls -l''.kan2015-06-171-2/+2
| | | | File names are in current locale as well.
* Unbreak ``env LANG=ru_RU.KOI8-R ls -l''.marcel2015-06-171-1/+1
| | | | Time strings are in the current locale.
* new dependssjg2015-06-162-1/+2
|
* removed extra keywordsjg2015-06-131-1/+0
|
* Add META_MODE support.sjg2015-06-1339-0/+1032
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-0839-78/+1
| |
| * Merge sync of headsjg2015-05-2794-713/+925
| |\
| * | Updated/new dependenciessjg2014-11-191-0/+1
| | |
| * | Merge from head@274682sjg2014-11-1973-624/+1156
| |\ \
| * \ \ Merge head from 7/28sjg2014-08-1938-125/+205
| |\ \ \
| * | | | Updated dependenciessjg2014-05-1638-37/+1
| | | | |
| * | | | Updated dependenciessjg2014-05-1037-0/+75
| | | | |
| * | | | Merge from headsjg2014-05-0822-56/+164
| |\ \ \ \
| * \ \ \ \ Merge headsjg2014-04-28501-411/+9021
| |\ \ \ \ \
| * | | | | | New/updated dependenciessjg2013-10-171-0/+12
| | | | | | |
| * | | | | | Merge head@256284sjg2013-10-136-4/+274
| |\ \ \ \ \ \
| * | | | | | | Updated dependenciessjg2013-10-132-106/+0
| | | | | | | |
| * | | | | | | Merge from headsjg2013-09-0556-1152/+583
| |\ \ \ \ \ \ \
| * \ \ \ \ \ \ \ sync from headsjg2013-04-1230-116/+444
| |\ \ \ \ \ \ \ \
| * | | | | | | | | Updated dependenciessjg2013-03-1138-0/+38
| | | | | | | | | |
| * | | | | | | | | Updated dependenciessjg2013-02-1638-76/+2
| | | | | | | | | |
| * | | | | | | | | Sync with HEAD.obrien2013-02-0844-434/+617
| |\ \ \ \ \ \ \ \ \
| * | | | | | | | | | Updated/new Makefile.dependsjg2012-11-081-0/+1
| | | | | | | | | | |
| | | | | | | | | | |
| | \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \ \
| *-----. \ \ \ \ \ \ \ \ \ Sync from headsjg2012-11-0455-306/+504
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-2238-0/+1158
| | |_|_|/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | | | | | | r284198 seems to have left a null format string printf that gcc does *not*sbruno2015-06-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | like breaking mips builds. Submitted by: Shawn Webb <shawn.webb@hardenedbsd.org> Obtained from: HardenedBSD
* | | | | | | | | | | | | | Convert ls(1) to use libxo(3).marcel2015-06-106-104/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Obtained from: Phil Shafer <phil@juniper.net> Sponsored by: Juniper Networks, Inc.
* | | | | | | | | | | | | | Cleanup some style(9) issues.bdrewery2015-06-082-42/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Whitespace. - Comments. - Wrap long lines. MFC after: 2 weeks X-MFC-with: r284105,r284106 Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | | It has been long time that when doing 'ls -G /path/to/a/symlink', instead ofdelphij2015-06-081-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | using the color of symbolic link, the color is determined by the link target. This behavior was quite confusing. Looking at the file history, it looks like that r203665 intends to fix this but the issue was never actually fixed. Fix this by not setting FTS_COMFOLLOW when color is requested like what was done in r203665. MFC after: 2 weeks
* | | | | | | | | | | | | | Implement '-s' to copy as symlink, similar to the current -l link(2) handling.bdrewery2015-06-074-28/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is also implemented in at least GNU coreutils cp. While here also improve the '-l' handling to not open(2) the source file as it does not actually need the descriptor. Sponsored by: EMC / Isilon Storage Division
* | | | | | | | | | | | | | Cleanup some indentation issues.bdrewery2015-06-071-9/+8
| | | | | | | | | | | | | |
* | | | | | | | | | | | | | Change directory permissions in pre-order.pluknet2015-06-041-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this order, it won't try to recurse into a directory for which it doesn't have permission, before changing that permission. This follows an existing behavior in other BSDs, linux, OS X. Obtained from: NetBSD
* | | | | | | | | | | | | | Remove unused variable, this variable fmtstr was introduced at revision r225868araujo2015-06-011-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and it is not used anymore after the convertion to use libxo at revision r283304. Differential Revision: D2678 Reviewed by: marcel
* | | | | | | | | | | | | | Document recent p_flag2 additions.pluknet2015-05-271-1/+4
| |_|_|_|_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | |
* | | | | | | | | | | | | Convert to use libxo. Document use of libxo as well.marcel2015-05-226-166/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Obtained from: Phil Shafer <phil@juniper.net> Sponsored by: Juniper Networks, Inc.
* | | | | | | | | | | | | Eliminate unneeded includes.delphij2015-05-2112-17/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks
* | | | | | | | | | | | | date(1): Make -r behave like GNU's version when the option can not bedelphij2015-05-072-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interpreted as a number, which checks the file's modification time and use that as the date/time value. This improves compatibility with GNU coreutils's version of time(1). MFC after: 2 weeks
* | | | | | | | | | | | | cp: Remove fts sorting.jilles2015-05-051-28/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In an attempt to improve performance, cp reordered directories first (although the comment says directories last). This is not effective with new UFS layout policies. The sorting reorders multiple arguments passed to cp, which may be undesirable. Additionally, the comparison function does not induce a total order. Per POSIX, this causes undefined behaviour in qsort(). NetBSD removed the sorting in 2009. On filesystems that return directory entries in hash/btree order, sorting by d_fileno before statting improves performance on large directories. However, this can only be implemented in fts(3). PR: 53475 Reviewed by: bde (in 2004) MFC after: 1 week
* | | | | | | | | | | | | Standardise chmod, chflags, chown and chgrp recursive symlink processingsmh2015-04-294-80/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | chmod, chflags, chgrp, chmod and chown now affect symlinks in -R mode as defined in symlink(7); previously symlinks were silently ignored. Differential Revision: https://reviews.freebsd.org/D2316 Reviewed by: jilles MFC after: 1 month Relnotes: yes Sponsored by: Multiplay
* | | | | | | | | | | | | Pet manlintbapt2015-04-261-1/+1
| | | | | | | | | | | | |
* | | | | | | | | | | | | Use mdoc(7) macros for curly bracesbapt2015-04-261-3/+3
| | | | | | | | | | | | |
* | | | | | | | | | | | | mdoc: escape Rebapt2015-04-261-1/+1
| | | | | | | | | | | | |
OpenPOWER on IntegriCloud