summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Revise the section that explains how to protect parts of an $ENV scriptsteve1997-05-071-20/+12
| | | | | | from being executed in non-interactive mode. Suggested and Reviewed by: Brian Somers <brian@freebsd.org>
* Don't source $ENV unless this is an interactive shell.steve1997-05-051-2/+2
|
* Fixed overflow for attempts to seek to offsets > ULONG_MAX. See thebde1997-04-301-2/+2
| | | | | | OpenBSD version for more complete fixes. E.g., to seek to offsets > INT_MAX using a block size of 1, block numbers need to be off_t's instead of u_long's.
* Enable whiteout code since we now have the lite2 support for them.dfr1997-04-294-8/+8
|
* Dynamically adjust size of displayed username to the longest username whichjkh1997-04-295-145/+254
| | | | | | | appears, not the longest _maximum_ username (this should probably also go into 2.2, for the day when we bump up the username length there too). Submitted-By: Terry Lambert <terry@lambert.org>
* Change spelling of ECBDIC to EBCDIC. Closes PR #3402steve1997-04-281-2/+2
| | | | Submitted by: h-nokubi@nmit.mt.nec.co.jp
* Turn on the new type builtin.steve1997-04-281-1/+2
|
* Sync with NetBSD's revision 1.29 of this file.steve1997-04-281-27/+55
| | | | Obtained from: NetBSD
* Remove an extra semicolon and nuke register keyword usage.steve1997-04-281-7/+7
|
* Fix redirection of unopened file descriptors and nuke registersteve1997-04-281-9/+27
| | | | | | keyword usage. Obtained from: NetBSD
* Revert changes from rev 1.16 to 1.17 for now. Closes PR 2879.steve1997-04-281-49/+29
|
* mdoc-ify and cleanup UNIMPLEMENTED messages. Closes PR 2880.steve1997-04-281-735/+587
|
* Reorder declarations slightly.steve1997-04-281-3/+3
|
* Avoid a possible NULL pointer dereference, nuke register usage,steve1997-04-281-6/+5
| | | | | | and remove an unnecessary reset. Obtained from: NetBSD
* Nuke register keyword usage, #if -> #ifdef, and avoid void *steve1997-04-282-13/+13
| | | | | | arithmetic. Obtained from: NetBSD
* Nuke register keyword usage, rename pread to preadfd, and opensteve1997-04-281-7/+9
| | | | | | input files FD_CLOEXEC. Obtained from: NetBSD
* When NO_HISTORY is defined and the history command is usedsteve1997-04-281-3/+16
| | | | | | show an error message. Inspired by: NetBSD
* Add a type builtin and nuke register keyword usage.steve1997-04-282-5/+81
| | | | Obtained from: NetBSD
* Nuke register keyword usage and #if -> #ifdef.steve1997-04-2814-65/+65
| | | | Obtained from: NetBSD
* Shamelessly pilfer most of NetBSD's Makefile so that thesteve1997-04-281-28/+16
| | | | | | | | problem with 'make -j n' and no .depend file goes away. I think Bruce mentioned this somewhere on one of the mailing lists. Obtained from: NetBSD
* When "-c" is specified, don't pad the command with spaces if it isjdp1997-04-161-2/+5
| | | | | the last field on the line. "ps -axlc" was needlessly wrapping around on 80-character windows.
* Fix typo in comment; Document in an example that years beyond 1999danny1997-04-162-4/+4
| | | | are handled; fix typo in same example.
* Provide examples of how to remove file names that begin withmpp1997-04-091-1/+8
| | | | | | | | a dash in non-getopt implementations. E.g.: rm /home/mpp/-filename rm ./-filename Requested by: bde
* Improve the wording in the NOTES section. Closes PR# 3223.mpp1997-04-081-13/+12
|
* Fix several problems with mkdir:mpp1997-04-011-29/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Fix mkdir -p to exit with the proper exit status and issue an error message if it was unable to create all of the specified directories and they did not previously exist. POSIX says: The mkdir utility shall exit with one of the following values: 0 All the specified directories were created successfully or the -p option was specified and all the specified directories now exist. E.g. % mkdir -p /var/mkdir mkdir: /var/mkdir: Permission denied % touch /tmp/file % mkdir -p /tmp/file/dir mkdir: /tmp/file: Not a directory Previously the above examples would exit with a zero exit status and no error message. Something like the following run as a normal user will still not produce an error: % id uid=629(mpp) gid=629(mpp).... % mkdir -p /usr/local/etc % ls -ld /usr/local/etc drwxr-xr-x 4 bin bin 512 Dec 26 14:55 /usr/local/etc/ 2) Cleaned up the mode handling to be more efficient when multiple directories are being created. 3) Fixed a problem where directories could be created with the wrong mode if the the -p option was specified and the build() routine returned and error. It would leave the umask set incorrectly at this point. 4) Removed an unused variable. Closes PR# 2304.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-2821-44/+44
| | | | posix standard on the topic.
* make usage() and SYNOPSIS agree with each other and add missing optionsobrien1997-03-262-4/+4
| | | | documented in the DESCRIPTION section.
* Use mkstemp rather than mktemp to prevent races.imp1997-03-241-4/+8
| | | | Obtained from: OpenBSD
* Merged from Lite2. The -t option is now handled better. The only visiblebde1997-03-131-104/+37
| | | | change should be that the usage message now actually matches the man page.
* Merged from Lite2. The man page no longer attempts to list all thebde1997-03-131-21/+28
| | | | | | vfs types. Fixed ordering of FreeBSD `k' option in synopsis.
* Merge from Lite2. Straightforward changes.bde1997-03-131-2/+7
|
* Correct the self reference in the description of the "tabs" option.mpp1997-03-121-2/+2
| | | | | | It should really refer to "oxtabs". Obtained from: NetBSD-bugs mailing list PR# 3320
* Fix buffer overflowguido1997-03-101-2/+3
|
* This is a funny one: df for a device that was not mounted used to failguido1997-03-101-2/+2
| | | | for root only.
* Fix buffer overflow (probably unexploitable).guido1997-03-101-2/+2
|
* Make mv more robust. A race has been fixed, as well as an extra warningguido1997-03-081-10/+28
| | | | | added when sbits are cleared. Fixes PR 1351 and 1377 (I hope).
* Typo fix.mpp1997-03-071-2/+2
|
* Acitvate chio(1).joerg1997-03-061-2/+2
|
* This commit was generated by cvs2svn to compensate for changes in r23449,joerg1997-03-065-0/+966
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import Jason Thorpe's contribution for an updated SCSI media changerjoerg1997-03-065-0/+966
| | | | device (now, finally!).
* Big usernames fixesache1997-03-041-4/+5
|
* Use MAXLOGNAME-1 for width because MAXLOGNAME includes NULache1997-03-031-3/+3
|
* Add a missing period in the -o option description.mpp1997-02-251-3/+10
| | | | | | Document the depreciated -g option. Inspired by: OpenBSD PR# 119
* Revert $FreeBSD$ to $Id$peter1997-02-22269-269/+269
|
* Use the .Bx macro in the HISTORY section.mpp1997-02-191-1/+2
|
* Add history section. Follows chflags(2).obrien1997-02-191-0/+4
|
* Include <ufs/ufs/ufsmount.h>.jkh1997-02-171-0/+1
|
* Fix a expansion bug that caused the result of `echo $((1 << 30))`steve1997-02-161-2/+5
| | | | | | to get truncated. Submitted by: bde
* Sweep through the tree fixing mmap() usage:alex1997-01-161-1/+1
| | | | | | | | | | | | - Use MAP_FAILED instead of the constant -1 to indicate failure (required by POSIX). - Removed flag arguments of '0' (required by POSIX). - Fixed code which expected an error return of 0. - Fixed code which thought any address with the high bit set was an error. - Check for failure where no checks were present. Discussed with: bde
OpenPOWER on IntegriCloud