summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Handle realloc() failure correctly.tjr2003-10-161-2/+5
|
* Turn malloc+snprintf into asnprintf.markm2003-10-141-14/+10
| | | | Submitted by: David Hill <hill at phobia dot em ess>
* - Check and report write(2) errors.dds2003-10-111-10/+59
| | | | | | | | | | | | | | - Issue a single writev(2) call instead of multiple write(2)s. This change improves the inefficiencies introduced when echo went on an stdio diet. The following figures are for echoing 1000 arguments. original stdio-based echo: 0.01 real 0.01 user 0.00 sys before: 0.05 real 0.00 user 0.04 sys after: 0.01 real 0.00 user 0.00 sys
* Check for write errors; report and exit with error value.dds2003-10-041-0/+2
|
* Be a little bit more correct WRT counting numbers vs. integer numbers.obrien2003-09-131-10/+10
|
* Do not assume there is only a space between #define and the macro nameschweikh2003-09-131-1/+1
| | | | | | | | when grepping for JOBS. The recent style cleanup replaced the space with a tab and broke job control detection. Little edits, disastrous consequences. Submitted by: Peter Edwards <pmedwards@eircom.net> X-MFC when: in about 5 weeks with the other sh arithmetic fixes.
* Add the -m, -w and -x options to ls's usage message.tjr2003-09-091-2/+2
| | | | | | PR: 51493 Submitted by: Walter Belgers MFC after: 1 month
* mdoc(7): Use the new feature of the .In macro.ru2003-09-082-2/+2
|
* Don't escape names in MLINKS: this won't work with bsd.man.mk,v 1.53.ru2003-09-071-1/+1
|
* Fix testing of arith_assign() value for $((a=15)).schweikh2003-09-071-1/+1
| | | | Submitted by: Enache Adrian <enache@rdslink.ro>
* #include <string.h> for prototypes for strcpy() and strlen().tjr2003-09-061-0/+2
| | | | Submitted by: Stefan Farfeleder
* Style cleanup, mostlyschweikh2003-09-044-207/+246
| | | | Requested by: bde
* Implement missing shell arithmetic operators in $(()) expansionschweikh2003-08-304-49/+236
| | | | | | | | | | and variable recognition. PR: standards/52972 Submitted by: Wartan Hachaturow <wart@tepkom.ru> Reviewed by: tjr (improved on original patch) Tested by: buildworld on CURRENT. MFC after: 6 weeks
* Stage 4 of dynamically linked root support. Add a big knob,gordon2003-08-171-1/+4
| | | | | | | | | | | WITH_DYNAMICROOT, which will toggle the generation of dynamically-linked binaries for installation in /bin and /sbin. It is currently off, meaning that /bin and /sbin are still statically linked by default. If something goes wrong (which I hope doesn't), this is what /rescue is all about. Please do not try to use WITH_DYNAMICROOT and NO_RESCUE to save space or some other equally silly reason. If you do and end up having problems, you have been warned.
* Implement the nwchan keyword that has been in the man page, but washarti2003-08-133-0/+15
| | | | | not implemented. This is just handy if you want to ddb the address some process is waiting on.
* Note in STANDARDS that -gno are not (yet?) POSIX conformant.schweikh2003-08-081-1/+6
| | | | | Spotted by: harti MFC after: 3 days
* Add additional documentation to setfacl(1) regarding the behavior ofrwatson2003-08-071-0/+18
| | | | | | | | | | | tools such as chmod(1) and ls(1) when it comes to acting on objects that have POSIX.1e extended ACLs. Specifically, discuss the substitution of the mask entry for the group entry in the mode representation of the ACL. Differently worded from the submission, and could probably use further refinement. PR: 55319 Submitted by: Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl>
* -v no longer a valid argument to setfacl(1) -- remove from usage().rwatson2003-08-071-1/+1
| | | | | PR: 55318 Submitted by: Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl>
* Clarify that the 'state' information consists of characters, notbrueffer2003-08-051-2/+2
| | | | | | | | only letters (e.g. IWs+) PR: 55221 Submitted by: Rich Morin <rdm@cfcl.com> MFC after: 3 days
* Remove collate_range_cmp() stabilization, it conflicts with rangesache2003-08-031-9/+2
|
* Don't check for the existance of src/crypto/ for building items thatmarkm2003-07-241-1/+1
| | | | | may contain crypto. The days of ITAR paranoia are over, and the simple macro tests that remain are sufficient.
* This code isn't WARNS=6 clean in the standard (crypto) caseru2003-07-201-0/+1
| | | | | due to bugs in OpenSSL headers. I was testing in the wrong environmement: standalone build without crypto/ sources.
* Make this code WARNS=6 clean again (after GCC 3.1.1 import).ru2003-07-202-14/+13
| | | | Submitted by: Marius Strobl <marius@alchemy.franken.de>
* When reporting an error internalizing an ACL string, print out therwatson2003-07-181-2/+2
| | | | | | | | ACL that generated the error, rather than the function, which is more user-friendly. Obtained from: TrustedBSD Project Product of: France
* Temporarily turn off -Werror for these components.kan2003-07-111-1/+1
|
* -l prints all permissions, not just owner and groupbrueffer2003-07-101-1/+1
| | | | | | PR: 54294 Submitted by: Per Hedeland <per@hedeland.org> MFC after: 3 days
* Remove MAINTAINER= lines from individual Makefiles in favor of thegshapiro2003-07-071-2/+0
| | | | MAINTAINER file (which already had entries for sendmail).
* Changes following CScout analysis:dds2003-07-0513-38/+37
| | | | | | | | | | | - Removed dead declarations - Made objects that should have been declared as static, static. The changes use STATIC instead of static, following the existing convention in the rest of the code. Approved by: schweikh (mentor) MFC after: 2 weeks
* Rename a local variable in order to avoid collision with standard 'log'kan2003-06-301-3/+3
| | | | function.
* pass -1 to setfile in cp.cjmg2003-06-301-1/+1
| | | | Submitted by: Jun Kuriyama
* Tweak a couple of utilities so they compile cleanly for /rescue. Mostlygordon2003-06-291-0/+4
| | | | | | path fixes. Submitted by: Tim Kientzle <kientzle@acm.org>
* Unbreak NOCRYPT buildworld.ru2003-06-291-1/+1
| | | | Reviewed by: markm
* support saving both user/group and permissions on symlinks (from PR)jmg2003-06-221-13/+20
| | | | | | | | also fix a slight bogon that assumed an fd of 0 was not valid. Changed it to be -1. PR: bin/25017 Submitted by: Martin Kammerhofer
* Get this area compiling with the highest WARNS= that it works with.markm2003-06-1311-18/+7
| | | | | | | Obsolete WFORMAT= junk also removed where possible. OK'ed by: obrien Tested on: sparc64, alpha, i386
* Add the -H option to ps(1) to display all kernel visible threads in eachscottl2003-06-122-6/+19
| | | | | process. The default behavior of showing only the process is retained as the default.
* add section name to .Xrcharnier2003-06-081-1/+1
|
* Fix for the NO_OPENSSL case.markm2003-06-081-1/+1
| | | | Reported by: Marius Strobl <marius@alchemy.franken.de>
* Clarify what -p option does.ru2003-06-071-11/+12
| | | | | | Prodded by: marcel While here, spell the "set-{user,group}-ID bit" correctly.
* Usekuriyama2003-06-061-1/+1
| | | | | | | | | cat ${.ALLSRC} > ${.TARGET} rather than ln -sf ${.ALLSRC} ${.TARGET} not to depends on absolute-path of symbolic links. Commented by: marcel, obrien, bde
* Make ed compile in the NOCRYPT case.jhay2003-06-031-0/+4
| | | | Reviewed by: markm
* Catch up with revs 1.49-1.50 of df.c: don't mention -t in the BUGS sectionbde2003-06-031-3/+1
| | | | since it has been fixed.
* Fixed exit code in previous commit. "var++" to set a flag to nonzerobde2003-06-031-5/+9
| | | | | | | | | | | | | | | | is a style bug at best. When the variable isn't a flag, it potentially overflows after a large number of settings. Here the number of settings is limited by ARG_MAX, but the variable is the exit code so it became bogus after the second setting and effectively overflowed to 0 after approx. 128 settings. Fixed some style bugs involving comments in and near previous commit. Clarification of previous commit message: df -t didn't give undefined behaviour, and the behaviour used to conform perfectly with the man page, since the buggy behaviour is documented in the BUGS section. -t just worked when no files or file systems were specified, and was just ignored if a file or file system was specified.
* From the df man page:jkh2003-06-021-0/+9
| | | | | | | | | | -t Only print out statistics for filesystems of the specified types. Make the behavior of df(1) conform to its man page (behavior is otherwise undefined). Submitted by: Rob Braun <bbraun@apple.com> Obtained from: Apple
* Modernise. Use libcrypto for DES instead of libcipher.markm2003-06-023-52/+51
|
* Instead of eating trailing newlines after inserting them into thefenner2003-05-311-5/+12
| | | | | | | | | | | | | output buffer, don't insert them at all. This prevents a buffer *underrun* when the substitution consists completely of newlines (e.g. `echo`) and the byte before the source buffer to which p points is a '\n', in which case more characters would be removed from the output buffer than were inserted. This fixes certain port builds on sparc64. Approved by: re (scottl) Reviewed by: des, tjr
* Erase whitspace at EOL.ru2003-05-221-1/+1
| | | | Approved by: re (blanket)
* Retire the useless NOSECURE knob.des2003-05-191-1/+1
| | | | Approved by: re (scottl)
* mdoc(7) police: A better version of the same.ru2003-05-162-3/+3
| | | | Approved by: re (blanket)
* mdoc(7) police: Fix document date.ru2003-05-161-1/+1
| | | | Approved by: re (blanket)
* Note that -n and \c are implementation-defined as per TC1 to POSIX 2001.schweikh2003-05-081-2/+11
| | | | | Approved by: re@ (bmah) MFC after: 3 days
OpenPOWER on IntegriCloud