summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Add cross-references to test(1) and expr(1) respectively.jkoshy1998-12-182-2/+8
| | | | | PR: docs/9111 Submitted by: Josh Gilliam <josh@quick.net>
* Cleaning out old stuff from one of my source trees:peter1998-12-161-5/+14
| | | | use mkdtemp() rather than mktemp() and fix a trivial memory leak.
* Free memory from setmode.imp1998-12-161-2/+3
| | | | Obtained from: OpenBSD
* Use getcwd in stead of using getwd so that we try harder to avoidimp1998-12-161-2/+2
| | | | | | overflowing a buffer. Obtained from: Either OpenBSD or a discussion in bugtraq.
* Free memory obtained from setmode.imp1998-12-162-2/+4
| | | | Obtained from: OpenBSD
* Don't put compiler warning flags in leaf Makefiles.bde1998-12-072-4/+2
|
* CFLAGS+= -Wall -Wformat for all of src/bin. All warnings except 2 minorbde1998-12-071-1/+2
| | | | ones in rmail have been fixed.
* Fixed printf format errors.bde1998-12-071-4/+4
|
* Fixed warnx format errors in printf and csh, and snprintf format errorsbde1998-12-071-2/+12
| | | | | | in sh, by using separate macros for the 1, 2 and 3-arg calls to warnx. (The 3-arg warnx macro in sh/bltin/bltin.h used to require bogus dummy args.)
* Fixed -Wall regression (broken in rev.1.12). Removed unused includes.bde1998-12-071-3/+3
|
* Fixed printf format errors (new bugs in rev.1.7). Fixed a spelling errorbde1998-12-071-7/+7
| | | | | (rev.1.7 blew away most of rev.1.2-1.6; I'm only fixing blowing away of rev.1.4).
* Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).archie1998-12-062-2/+3
|
* Rev 1.13 fixes PR bin/8958obrien1998-12-061-1/+1
|
* There is a bug in /bin/pax -s option processing. The code assumes that allobrien1998-12-051-2/+2
| | | | | | | | | | | | | pattern matches will occur at offset zero of the source string. The bug causes the input source string pointer to be incremented by the offset of the end of the match, instead of it's length. The fix is to only increment the pointer by the length of the pattern match (eo-so). Of course, the one example in the man page shows a situation where the match occurs at offset 0. Submitted by: John W. DeBoskey <jwd@unx.sas.com> Obtained from: freebsd-current@freebsd.org
* Fix typo. "If the an entry" --> "If an entry"billf1998-12-021-2/+2
| | | | | PR: docs/8140 Submitted by: Sue Blake <sue@vedanix.welearn.com.au>
* superceded -> superseded, which after some debate on #FreeBSD is inbillf1998-11-301-2/+2
| | | | | | | fact the proper spelling. PR: docs/8697 Submitted by: Sascha Blank <blank@fox.uni-trier.de>
* changable -> changeablebillf1998-11-301-2/+2
| | | | | PR: docs/8697 Submitted by: Sascha Blank <blank@fox.uni-trier.de>
* Describe `bs=n' more precisely. Fixed some English errors.bde1998-11-291-6/+8
| | | | Obtained from: OpenBSD
* Fix formatting of %CPU value on alpha.dfr1998-11-251-3/+3
| | | | Submitted by: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
* Indicate that the thing not found was not /bin/pwd but rather $CWD (or .).jkh1998-11-211-2/+2
|
* Don't use mmap() for non-regular files, since st_size is only meaningfulbde1998-11-181-2/+2
| | | | | | | | for regular files. This fixes recent breakage of cp'ing from /dev/zero. /dev/zero doesn't support mmap(), but the device driver mmap routines are not called for mapping 0 bytes, so the error was not detected. mmap() can't even be used for cp'ing special files that support mmap(), since there is general way to determine the file size.
* Use mmap for file coping. 5-10% faster than the read system call.wosch1998-11-141-1/+2
|
* Fix behaviour for 'mkdir -m 777 / /tmp/foo'. Play "guess the style bug"msmith1998-10-231-6/+8
| | | | | | with Bruce again. Reported by: bde
* Honour the spirit rather than the implementation of the previous changes;msmith1998-10-221-19/+10
| | | | | if we are invoked with -m, use chmod() on the final directory component in order to ensure the mode is correctly set.
* Make this compile, and honour the spirit of the original design whilemsmith1998-10-201-8/+10
| | | | | | | incorporating the intended fix. Attempt to address some of the putative style bugs introduced. Others doubtless remain. Embarrassed by: bde
* - mkdir -m should call chmod because the high-order bits get ignoredmsmith1998-10-201-1/+19
| | | | | | by the kernel as a security feature of some sort. Submitted by: Wilfredo Sanchez <wsanchez@apple.com>
* - Fix off-by-one problem in tar where filenames of length 100msmith1998-10-201-7/+6
| | | | | | | and dirnames of length 99 don't archive. Submitted by: Wilfredo Sanchez <wsanchez@apple.com> Obtained from: OpenBSD
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() ordes1998-10-131-2/+2
| | | | | | | | | | | execvp() in the child branch of a vfork(). Changed to use fork() instead. Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly. PR: Loosely related to bin/8252 Approved by: jkh and bde
* Doh. What was I smoking when I wrote this?des1998-10-131-5/+5
| | | | | PR: bin/8301 Submitted by: Tetsuya Furukawa <tetsuya@secom-sis.co.jp>
* Correct a grammatical nit and remove ambiguity about the effect ofjkoshy1998-10-131-4/+6
| | | | | | | the -p option. PR: 8229 Submitted-by: Sheldon Hearn <axl@iafrica.com>
* Add JKH's auth.conf-file parser to turn Kerberos on/off in userland.markm1998-10-093-5/+17
|
* Null commit, just to test something. Please ignore.jkh1998-10-041-2/+1
|
* Added missing #include <string.h>alex1998-10-031-1/+2
|
* Fix 'chio params' so that it actually prints out the current picker.ken1998-10-011-0/+7
| | | | | | (This was broken when the volume tag changes went in.) Submitted by: Josef Karthauser <joe@pavilion.net>
* Updated the ch(4) driver and chio(1) command to include volumegibbs1998-09-153-143/+443
| | | | | | | | | | | | | | | | | tag support. These changes have been tested with a Breeze Hill Q47 DLT and a DEC DLT2500 media changer. The latter has no volume tag support. The chio(1) command was updated to include various flags to the status subcommand. These flags can be used to select additional information to be displayed (like volume tags). A new chio(1) subcommand named 'voltag' has been added which allows for changes to volume tags inside the media changer controller. This could not be tested as the Q47 does not provide the functio- nality. Submitted by: Hans Huebner
* Portability fixes when sizeof(int) != sizeof(long).dfr1998-09-143-41/+47
|
* Fix minor style bugs noticed by the Bruce Filter.[tm]imp1998-09-131-4/+7
| | | | Bruce-Filter-By: bde
* Be more consistent with handling of quote mark control character.tegge1998-09-134-72/+28
| | | | | | | Don't output double-quotes inside variable expansion/arithmetic expansion region in here-documents. When leaving the arithmetic expansion syntax mode, adjust the dblquote flag according to previous syntax, in order to avoid splitting of quoted variables.
* Silence -Wall -W -Wkitchen-sink. Use ssize_t in preference to int,imp1998-09-111-9/+7
| | | | | make a char * const that should have been. Use new style function declaration for main. Mostly a Bruce Filter[tm] test commit.
* Narrow down conditions to break wait() to process traps.cracauer1998-09-102-5/+6
| | | | Improve comments.
* Fixed breakage of %CPU and %MEM in the previous commit. sysctlbyname()bde1998-09-101-5/+11
| | | | | | was called with wrong args so it always failed. PR: 7881
* Fix an inefficiency I introduced in my last commit.cracauer1998-09-102-10/+6
| | | | Include "expand.h" vom memalloc.c to pull function declartion into scope
* If traps are set, they are now executed even when a signal-blockingcracauer1998-09-083-10/+27
| | | | | | | | | | | | foreground child is running. Formerly, traps were exceuted after the next child exit. The enables the user to put a breaking wrapper around a blocking application: (trap 'echo trap ; exit 1' 2; ./pestyblocker; echo -n) The "echo -n" after the child call is needed to prevent sh from optimizing the trap-executing shell away. I'm working on this.
* Add -S flag to test for sockets.cracauer1998-09-074-17/+28
| | | | | | PR: bin/7507 Reviewed by: I tested the patch Submitted by: Stefan `Sec` Zehl sec@42.org
* Better handling of word splitting. Don't record the same regiontegge1998-09-067-49/+231
| | | | | | multiple times when performing nested variable expansion, and preserve some quoting information in order to avoid removing apparently empty expansion result.
* Don't blindly eliminate `..' and the previous pathname component.tegge1998-09-062-19/+160
| | | | | PR: 2541 Obtained from: NetBSD
* Split lines into one subdir per line.gpalmer1998-08-301-4/+30
|
* Improve bookkeeping of in_waitcmd and style fixes.cracauer1998-08-257-27/+41
| | | | Submitted by: Bruce Evans
* Re-enable killing childs with SIGQUIT. Spotted by Bruce Evans.cracauer1998-08-251-2/+2
|
* Got two volatile sig_atomic_t and int mixed up. Spotted by Gary Palmer.cracauer1998-08-242-4/+4
|
OpenPOWER on IntegriCloud