steve
27968b9dee
Make sh(1) less aware of the bit fields returned by wait by
...
using the WIF* macros in sys/wait.h.
PR: bin/3668
Submitted by: dholland@eecs.harvard.edu
1997-05-24 21:04:55 +00:00
steve
bc7339d881
Remove y.tab.h from the beforedepend target. Also add a
...
rule that shows the dependency of arith_lex.[co] on y.tab.h.
Suggested by: Bruce Evans <bde@zeta.org.au>
1997-05-21 03:23:23 +00:00
steve
cc4887cc10
Add explicit y.tab.h rule so that 'make depend clean all' does
...
not fail with an "don't know how to make y.tab.h" error.
1997-05-19 00:29:29 +00:00
steve
2f84314766
Use the __unused attribute where warranted.
1997-05-19 00:18:52 +00:00
steve
a5235db275
Miscellaneous sorting and addition of rules for object files that
...
depend on generated headers.
Reviewed by: Bruce Evans <bde@zeta.org.au>
1997-05-19 00:16:27 +00:00
joerg
9904a8c9de
Ensure string termination after strncpy().
...
PR: 2997
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
1997-05-09 16:00:35 +00:00
steve
360ef2058c
Revise the section that explains how to protect parts of an $ENV script
...
from being executed in non-interactive mode.
Suggested and Reviewed by: Brian Somers <brian@freebsd.org>
1997-05-07 11:42:00 +00:00
steve
ed817524a2
Don't source $ENV unless this is an interactive shell.
1997-05-05 03:45:17 +00:00
bde
68962748a6
Fixed overflow for attempts to seek to offsets > ULONG_MAX. See the
...
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.
1997-04-30 17:51:29 +00:00
dfr
559a468aae
Enable whiteout code since we now have the lite2 support for them.
1997-04-29 10:03:10 +00:00
jkh
e2ef6a625f
Dynamically adjust size of displayed username to the longest username which
...
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>
1997-04-29 05:26:05 +00:00
steve
fadc8fc0f2
Change spelling of ECBDIC to EBCDIC. Closes PR #3402
...
Submitted by: h-nokubi@nmit.mt.nec.co.jp
1997-04-28 04:07:29 +00:00
steve
c2743ee837
Turn on the new type builtin.
1997-04-28 03:50:07 +00:00
steve
9b0ffd7cdc
Sync with NetBSD's revision 1.29 of this file.
...
Obtained from: NetBSD
1997-04-28 03:28:43 +00:00
steve
6186f8a0bf
Remove an extra semicolon and nuke register keyword usage.
1997-04-28 03:27:12 +00:00
steve
1601bfa863
Fix redirection of unopened file descriptors and nuke register
...
keyword usage.
Obtained from: NetBSD
1997-04-28 03:25:13 +00:00
steve
bd025769ba
Revert changes from rev 1.16 to 1.17 for now. Closes PR 2879.
1997-04-28 03:22:09 +00:00
steve
4636b4b5ee
mdoc-ify and cleanup UNIMPLEMENTED messages. Closes PR 2880.
1997-04-28 03:20:09 +00:00
steve
f781548b1d
Reorder declarations slightly.
1997-04-28 03:17:51 +00:00
steve
1da8ca45aa
Avoid a possible NULL pointer dereference, nuke register usage,
...
and remove an unnecessary reset.
Obtained from: NetBSD
1997-04-28 03:16:12 +00:00
steve
a503bbc21f
Nuke register keyword usage, #if -> #ifdef, and avoid void *
...
arithmetic.
Obtained from: NetBSD
1997-04-28 03:14:04 +00:00
steve
6ce1ec6c04
Nuke register keyword usage, rename pread to preadfd, and open
...
input files FD_CLOEXEC.
Obtained from: NetBSD
1997-04-28 03:11:52 +00:00
steve
101652d621
When NO_HISTORY is defined and the history command is used
...
show an error message.
Inspired by: NetBSD
1997-04-28 03:10:31 +00:00
steve
d13866ebb9
Add a type builtin and nuke register keyword usage.
...
Obtained from: NetBSD
1997-04-28 03:08:38 +00:00
steve
2b784fa564
Nuke register keyword usage and #if -> #ifdef.
...
Obtained from: NetBSD
1997-04-28 03:06:52 +00:00
steve
9c7a4e1848
Shamelessly pilfer most of NetBSD's Makefile so that the
...
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
1997-04-28 03:03:23 +00:00
jdp
563d27a55f
When "-c" is specified, don't pad the command with spaces if it is
...
the last field on the line. "ps -axlc" was needlessly wrapping
around on 80-character windows.
1997-04-16 16:08:11 +00:00
danny
15afdcdb78
Fix typo in comment; Document in an example that years beyond 1999
...
are handled; fix typo in same example.
1997-04-16 05:59:21 +00:00
mpp
760778bbe9
Provide examples of how to remove file names that begin with
...
a dash in non-getopt implementations. E.g.:
rm /home/mpp/-filename
rm ./-filename
Requested by: bde
1997-04-09 05:04:43 +00:00
mpp
dd5458250f
Improve the wording in the NOTES section. Closes PR# 3223.
1997-04-08 20:27:48 +00:00
mpp
c785109c06
Fix several problems with mkdir:
...
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.
1997-04-01 23:46:22 +00:00
imp
141381e1cb
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
imp
054f35c222
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-28 15:24:41 +00:00
obrien
4c9cebcc51
make usage() and SYNOPSIS agree with each other and add missing options
...
documented in the DESCRIPTION section.
1997-03-26 17:48:40 +00:00
imp
a1b85d3196
Use mkstemp rather than mktemp to prevent races.
...
Obtained from: OpenBSD
1997-03-24 05:45:29 +00:00
bde
55186ebb5b
Merged from Lite2. The -t option is now handled better. The only visible
...
change should be that the usage message now actually matches the man page.
1997-03-13 17:41:37 +00:00
bde
9924e3c671
Merged from Lite2. The man page no longer attempts to list all the
...
vfs types.
Fixed ordering of FreeBSD `k' option in synopsis.
1997-03-13 17:32:39 +00:00
bde
2eaf7f70e5
Merge from Lite2. Straightforward changes.
1997-03-13 17:29:08 +00:00
mpp
c0650ef68d
Correct the self reference in the description of the "tabs" option.
...
It should really refer to "oxtabs".
Obtained from: NetBSD-bugs mailing list PR# 3320
1997-03-12 15:59:22 +00:00
guido
bb4c208876
Fix buffer overflow
1997-03-10 19:52:12 +00:00
guido
2f74bc969e
This is a funny one: df for a device that was not mounted used to fail
...
for root only.
1997-03-10 19:39:43 +00:00
guido
b27e3f2aef
Fix buffer overflow (probably unexploitable).
1997-03-10 19:10:08 +00:00
guido
7645c8bdd7
Make mv more robust. A race has been fixed, as well as an extra warning
...
added when sbits are cleared.
Fixes PR 1351 and 1377 (I hope).
1997-03-08 16:05:44 +00:00
mpp
fc6cc96bc4
Typo fix.
1997-03-07 01:58:56 +00:00
joerg
cf12351a85
Acitvate chio(1).
1997-03-06 15:30:53 +00:00
joerg
8686d8e4ac
This commit was generated by cvs2svn to compensate for changes in r23449,
...
which included commits to RCS files with non-trunk default branches.
1997-03-06 15:30:06 +00:00
joerg
22817fb6a1
Import Jason Thorpe's contribution for an updated SCSI media changer
...
device (now, finally!).
1997-03-06 15:30:06 +00:00
ache
264293aa5c
Big usernames fixes
1997-03-04 00:33:56 +00:00
ache
648176d7b8
Use MAXLOGNAME-1 for width because MAXLOGNAME includes NUL
1997-03-03 08:20:28 +00:00
mpp
75dbc4794f
Add a missing period in the -o option description.
...
Document the depreciated -g option.
Inspired by: OpenBSD PR# 119
1997-02-25 00:26:53 +00:00