summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Reviewed by: hackers@freebsd.org in generaljulian1997-11-131-2/+6
| | | | | | | | | | | | | Obtained from: Whistle Communications tree Add an option to the way UFS works dependent on the SUID bit of directories This changes makes things a whole lot simpler on systems running as fileservers for PCs and MACS. to enable the new code you must 1/ enable option SUIDDIR on the kernel. 2/ mount the filesystem with option suiddir. hopefully this makes it difficult enough for people to do this accidentally. see the new chmod(2) man page for detailed info.
* Document the exit status for a command that was terminated by ajdp1997-11-121-1/+5
| | | | signal.
* Sort "sparse" into alphabetical order, since dd's `conv' options needjoerg1997-11-111-2/+2
| | | | to be sorted. This temporarily broke the "osync" option.
* Fixed some type and value mismatches. setsignal() returned a boguslybde1997-11-102-12/+11
| | | | | | cast value that was always ignored. Rev.1.9 of trap.c made this more bogus by returning a semantically different value after calling siginterrupt(). Avoid these problems by not returning a value.
* 1) Fix longstanding bug:ache1997-11-051-3/+10
| | | | | | | | | | | | | | trap 'echo xxx' 1 2 3 15 read x is not interrupted by ^C (due to restartable read syscall) and must be interrupted per POSIX Worse case: read -t 5 x hangs forever after ^C pressed (supposed to timeout after 5 secs) Fixed by adding siginterrupt(signo, 1) after catch handler installed 2) Do not reinstall sighandler immediately after it is called, BSD do it for us
* Synchronize usage() and man page.helbig1997-10-262-5/+5
| | | | Pointed out by bde.
* Style police: keep a variable list in alphabetical order, and addjoerg1997-10-131-5/+5
| | | | | | pointless paren's to return statements. Nitpicked by: bde :)
* Make df(1) exit with non-success status if something went wrong.joerg1997-10-121-11/+18
| | | | PR: bin/4415
* Teach dd(1) about an option to write sparse files. Can be useful forjoerg1997-10-114-7/+45
| | | | | | | things like diskless clients' swap files etc. Submitted by: pascal@zuo.dec.com (Pascal Pederiva) (ages ago, with many stylistic changes by me)
* Un-clobber mktemp->mkstemp patch.eivind1997-10-091-3/+2
|
* Add <sys/errno.h>eivind1997-10-091-1/+2
|
* make signal handlers errno safeeivind1997-10-081-3/+8
| | | | Obtained from: OpenBSD (file rev 1.11) - Theo de Raadt <deraadt@openbsd.org>
* mktemp -> mkstempeivind1997-10-081-2/+3
| | | | Obtained from: OpenBSD (file rev 1.4 by Theo de Raadt <deraadt@openbsd.org>)
* make signal handlers errno safeeivind1997-10-081-1/+3
| | | | Obtained from: OpenBSD (file rev 1.5) Theo de Raadt <deraadt@openbsd.org>
* Slightly improved fix compared to my insirationeivind1997-10-081-1/+3
| | | | | | | don't munge argv strings -- copy them first. avoids 'w' showing: deraadt p8 zeus.theos.com 8:26AM 3 dd if of bs Obtained from: OpenBSD (file rev 1.3) by Theo de Raadt <deraadt@openbsd.org>
* save errno in sigchld handlereivind1997-10-071-1/+3
| | | | Obtained from: Theo deRaadt <theo@openbsd.org> (OpenBSD rev 1.6)
* vsprintf -> vnsprintf paranoia.eivind1997-10-071-2/+2
| | | | Obtained from: Todd Miller <millert@openbsd.org> (OpenBSD rev 1.3)
* Don't honor $HOME if >= MAXPATHLENeivind1997-10-071-2/+3
| | | | Obtained from: Todd Miller <millert@openbsd.org> (OpenBSD csh.c rev 1.3 and 1.4)
* Changes to support full make parallelism (-j<n>) in the worldjkh1997-10-051-6/+9
| | | | | | target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
* mv(1) is too silent if used with the option -i. It shouldwosch1997-10-041-6/+9
| | | | | print which input mv(1) expect (y/n) and print a warning if the file was not overwritten.
* cp(1) is too silent if used with the option -i. It shouldwosch1997-10-031-2/+5
| | | | | print which input cp(1) expect (y/n) and print a warning if the file was not overwritten.
* Change example from US to international standard date notation.wosch1997-10-031-3/+3
|
* Back out suppress '\n' mod.danny1997-10-032-16/+8
|
* Add the '-s' flag to the usage string.danny1997-10-011-2/+2
|
* Add the ability to supress the '\n' at the end of the date printed.danny1997-10-012-7/+15
|
* Fix the broken `date HHMM.SS' handling.joerg1997-09-301-2/+3
| | | | | PR: bin/4661 Submitted by: blank@sliphost37.uni-trier.de (Sascha Blank)
* Add the '-t timeout' option to the 'read' builtin. This allows themsmith1997-09-292-6/+72
| | | | | | | | 'read' command to return an error if the user fails to supply any input withink a given time period. The behaviour of this option is similar to that of the like-named option in ksh93. Reviewed by: joerg
* Endless loop.wosch1997-09-281-5/+6
| | | | | | | $ touch from to $ echo -n loop | mv -i from to overwrite to? ^C
* Change to use the new KTH Kerberos.markm1997-09-282-11/+13
| | | | Also make -Wall a bit quieter.
* environmental -> environment.charnier1997-09-182-5/+5
|
* Fix sorting of directories when doing '-d'.sef1997-09-181-10/+6
| | | | | PR: bin/4558 Submitted by: Keith Bostic
* PR: docs/4449wosch1997-09-131-1/+6
| | | | | | The -c flag is not documented in the sh(1) manapge. Submitted by: adrian@virginia.edu
* spelling corrections.wosch1997-09-132-3/+3
| | | | | PR: docs/4450 Submitted by: josh@quick.net
* This command doesn't need to be setuid root, it's only askingjkh1997-09-121-3/+1
| | | | | | for potential trouble. Reviewed by: security officers. Noted by: OpenBSD
* fix misspellingjmg1997-08-301-2/+2
| | | | | | Submitted-by: Josh Gilliam Closes PR:4427
* fix misspellingjmg1997-08-301-2/+2
| | | | | | Submitted-by: Josh Gilliam Closes PR:4425
* Dont have an internal function named "warn" it clashes with libc..sos1997-08-2915-247/+247
| | | | Needed for ELF.
* Restored clobbered parts of rev.1.15 (build intermediate object filesbde1997-08-251-2/+14
| | | | for tools).
* Correct confusing error message when called as 'stty -sane'.steve1997-08-241-5/+8
| | | | PR: bin/3573
* Disallow empty arguments (eg: '') as process ids.jlemon1997-08-211-4/+4
| | | | | PR: 2631 Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
* Document correct option in manual page.jlemon1997-08-191-2/+2
| | | | | PR: 3769 Submitted by: johnp@lodgenet.com
* Pad the input buffer whenever sync is used, not just if the noerror flagjlemon1997-08-191-10/+12
| | | | | | | | | | is also set. Change osync to not to tack on an empty block if the input buffer is null, or an even multiple of the blocksize. Also change osync to pad the output with nulls/spaces depending whether this is a block-oriented conversion or not (same as sync). PR: 3818
* Hint at how to use TZ.brian1997-08-181-1/+6
| | | | Submitted by: grog@lemis.com
* Make all status values an integral type and usesteve1997-08-182-7/+8
| | | | pid_t when referring to process IDs.
* Use -I${.CURDIR}/../../sys so that the path is relativesteve1997-08-131-2/+2
| | | | | | to the source code directory. Submitted by: bde
* Describe signals behaviour nowache1997-08-121-1/+7
|
* Oops, add #include's (forgotten in last commit) to make thissteve1997-08-111-1/+4
| | | | compile again.
* Use -I../../sys instead of -I/sys.steve1997-08-111-2/+2
|
* Remove #ifdef NEWVM code and remove extra "key.name = p" line.steve1997-08-111-125/+6
|
* Fix seg fault when invalid keywords are used.steve1997-08-111-3/+2
| | | | | PR: bin/4253 Submitted by: Jesse Rosenstock <jmr@ugcs.caltech.edu>
OpenPOWER on IntegriCloud