steve
aae937eff0
Fix seg fault when invalid keywords are used.
...
PR: bin/4253
Submitted by: Jesse Rosenstock <jmr@ugcs.caltech.edu>
1997-08-11 02:29:50 +00:00
brian
746007b347
Remove forgotten debug statement.
1997-08-10 16:37:33 +00:00
brian
d334587489
Add "-f fmt date" for specification of the
...
date using strptime(3).
Suggested by: Michael Smith <msmith@atrad.adelaide.edu.au>
Change mm & dd to MM & DD so that they don't
clash with the month.
1997-08-10 16:36:59 +00:00
brian
ef21231dab
Change [-DMHW [+|-]val] to [-v [+|-]val[ymwdHM]]
...
Support Hours & Minutes
Add -Wall to Makefile
1997-08-09 22:34:06 +00:00
steve
01a5cf81b2
More minor nits (mostly using memove instead of memcpy).
1997-08-08 00:54:05 +00:00
steve
585db0146c
More $@ -> ${.TARGET} that I missed earlier.
1997-08-08 00:49:25 +00:00
steve
408512212b
Observe precedence set by Philippe Charnier when adding an
...
rcsid.
1997-08-07 22:33:01 +00:00
steve
80cf4d73ac
Observe precedence set by Phillippe Charnier in adding an
...
rcsid.
1997-08-07 22:28:25 +00:00
steve
713c6724dc
Changes include: sccsid -> rcsid, bcopy -> memcpy, don't use the
...
register keyword, and -Wall cleaning.
Obtained from: similar changes in NetBSD
1997-08-07 21:42:17 +00:00
steve
c3b9042311
Remove remaining Lite1 stuff from the man page and uphold the
...
precedence in changing sccsid to rcsid as set by Phillippe
Charnier in his previous 100 or so commits.
pointed out by: Bruce Evans <bde@zeta.org.au>
1997-08-07 21:37:39 +00:00
steve
01577a711e
sccsid -> rcsid and fix some minor nits.
1997-08-07 21:33:47 +00:00
steve
e669ca458a
Add Bruce's _NEW_VFSCONF flag to make this compile cleanly and
...
sccsid -> rcsid.
1997-08-07 21:31:00 +00:00
steve
95a03d9465
#include <err.h> for err(3) call and replace extern reference to errno
...
with #include <errno.h>.
1997-08-07 15:41:51 +00:00
steve
1a8069828d
Remove #if(n)def BSD_4_4_LITE cruft and change sccsid to rcsid.
1997-08-07 15:37:47 +00:00
steve
73c33f0d68
Remove #if(n)def BSD_4_4_LITE cruft and sccsid -> rcsid.
1997-08-07 15:33:50 +00:00
brian
975304387a
Add [-DWMY] flags for date adjustment.
...
Discussed with: freebsd-hackers
1997-08-04 03:37:07 +00:00
peter
4798973d71
Fix "lstart". (Displays "19" rather than time)
...
PR: 4206
Submitted by: Tetsuya Furukawa <tetsuya@secom-sis.co.jp>
1997-08-03 08:33:17 +00:00
peter
c8da6d7fe6
Kill #ifndef NEWVM etc. It affected a lot of other things besides
...
VM structure (eg: credentials etc) and it's highly unlikely we'll ever
get to see the "tainted" BSD<=4.3 VM code in public use. Although it
indicated the way some things used to be done, it obfuscates things too
much.
1997-08-03 08:25:01 +00:00
bde
d04c5a7006
devname.c moved to libc before Lite1 and isn't in ps in Lite2.
1997-07-13 07:43:41 +00:00
bde
25e5e74d95
Bury this properly.
1997-07-01 21:38:49 +00:00
bde
6b0f21cbdc
This commit was generated by cvs2svn to compensate for changes in r27159,
...
which included commits to RCS files with non-trunk default branches.
1997-07-01 21:34:30 +00:00
bde
9eac363061
Import this unwanted file from Lite-original so that it doesn't
...
get imported with Lite2 (there was only one missing file in src/bin,
other than tags files and obj links).
1997-07-01 21:34:30 +00:00
charnier
ac2d4da5ec
Remove lines inside #ifdef 0/#endif.
1997-06-30 11:10:18 +00:00
pst
c22f14d51d
NOSHARED takes a yes/YES no/NO value, not "true, false, hey mon!".
...
NOPIC is used to not generate a shared library, not NOSHARED.
Make NOSHARED advisory where appropriate.
Remove bogus NOSHARED (kbdio).
1997-06-29 06:03:42 +00:00
charnier
288769b4a5
Document the use of `ls -lo' to see flags.
...
Obtained from: OpenBSD.
1997-06-24 06:57:11 +00:00
jkh
16d9f14824
Back out previous fix - this bug's got diplomatic immunity as a registered
...
political issue.
1997-06-19 17:57:06 +00:00
jkh
2f48b69844
>Number: 3780
...
>Category: bin
>Synopsis: WEXITSTATUS() may return nagative value, which causes sh to generate bad $?
PR: 3780
Submitted by: sanewo@ba2.so-net.or.jp
1997-06-19 15:14:01 +00:00
jdp
5474a30c22
Try again to explain the existence of lchown() and the absence of
...
lchmod() and lutimes().
1997-06-19 01:07:05 +00:00
jdp
9657538f4e
Update some text to reflect the fact that symbolic links now have
...
owner and group attributes.
1997-06-14 18:44:03 +00:00
ache
e5521aff5f
Now [^abc] means the same as [!abc] like bash and *csh already does
1997-06-06 23:04:33 +00:00
charnier
df15606acb
Typo in usage string. Looks like the man page now.
1997-06-06 06:48:35 +00:00
charnier
868b27768e
Err(3) was locally defined (for portability reasons). Use #ifdef 0/#endif
...
to hide this so libc is kept instead.
1997-06-06 06:46:27 +00:00
charnier
5dd7b88ddb
Correct usage string. Man page don't reflect reality for now.
1997-06-06 06:43:19 +00:00
charnier
3f6611f8d3
Cosmetic change in usage string.
1997-06-06 06:40:06 +00:00
charnier
efc4145bcf
Do not use __progname.
1997-06-06 06:32:09 +00:00
charnier
c9aaab1f2a
Revert part of previous patch: Don't use __progname.
1997-06-04 06:27:30 +00:00
charnier
3e75767b30
Revert part of previous patch: Don't use __progname.
1997-06-04 06:21:44 +00:00
charnier
401decf3fc
Add xref to lchown(2) and symlink(2).
...
Obtained from: {Net|Open}BSD
1997-06-03 06:27:44 +00:00
charnier
10249d98be
Signal # NSIG (32) is invalid.
...
Obtained from: {Net|Open}BSD
1997-06-03 06:24:50 +00:00
charnier
e541d40ac8
/etc/netstart -> /etc/rc.network
...
Use __progname in usage string. Change usage string to match the man page.
1997-06-03 06:21:45 +00:00
charnier
815b0475b4
/etc/netstart -> /etc/rc.network
...
Add usage() and use __progname. Change usage string to match man page.
1997-06-03 06:19:04 +00:00
max
f3827d8ae6
Add X-reference to ch(4).
1997-06-02 20:57:52 +00:00
charnier
4e0c9ceb80
Typo fix.
1997-06-02 06:40:08 +00:00
charnier
37f3c23139
Typo (the the -> the).
1997-06-02 06:32:26 +00:00
charnier
e71816b9ce
Off by 1 adjustment. Properly NUL terminate after strncpy.
...
Obtained from: {Net|Open}BSD
1997-06-02 06:30:06 +00:00
charnier
6bd40f99ef
Off by 1 adjustment.
1997-06-02 06:27:00 +00:00
charnier
16e92ea4c7
Remove unused variables. Suppress -Wall warnings. Check for potential buffer
...
overflow. Display available command in usage string.
Obtained from: {Net|Open}BSD
1997-06-02 06:25:19 +00:00
julian
900c29f67a
Submitted by: Whistle Communications (archie Cobbs)
...
These changes add the ability to specify that a UFS file/directory
cannot be unlinked. This is basically a scaled back version
of the IMMUTABLE flag. The reason is to allow an administrator
to create a directory hierarchy that a group of users
can arbitrarily add/delete files from, but that the hierarchy
itself is safe from removal by them.
If the NOUNLINK definition is set to 0
then this results in no change to what happens normally.
(and results in identical binary (in the kernel)).
It can be proven that if this bit is never set by the admin,
no new behaviour is introduced..
Several "good idea" comments from reviewers plus one grumble
about creeping featurism.
This code is in production in 2.2 based systems
1997-06-02 06:24:52 +00:00
steve
77dc61551a
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
de0e0cfad3
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
1c5ad8bff5
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
e6f2a91d79
Use the __unused attribute where warranted.
1997-05-19 00:18:52 +00:00
steve
b52f00b73c
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
9d876a1ca8
Ensure string termination after strncpy().
...
PR: 2997
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
1997-05-09 16:00:35 +00:00
steve
7837db683d
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
e0d721aef0
Don't source $ENV unless this is an interactive shell.
1997-05-05 03:45:17 +00:00
bde
14dd6bbf0c
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
c70c291f10
Enable whiteout code since we now have the lite2 support for them.
1997-04-29 10:03:10 +00:00
jkh
6fbecfb144
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
0a7b50e32b
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
19cb385cc2
Turn on the new type builtin.
1997-04-28 03:50:07 +00:00
steve
44bb07fe05
Sync with NetBSD's revision 1.29 of this file.
...
Obtained from: NetBSD
1997-04-28 03:28:43 +00:00
steve
e918e82878
Remove an extra semicolon and nuke register keyword usage.
1997-04-28 03:27:12 +00:00
steve
14b3c0a4f8
Fix redirection of unopened file descriptors and nuke register
...
keyword usage.
Obtained from: NetBSD
1997-04-28 03:25:13 +00:00
steve
e310a7dada
Revert changes from rev 1.16 to 1.17 for now. Closes PR 2879.
1997-04-28 03:22:09 +00:00
steve
608d3e61dc
mdoc-ify and cleanup UNIMPLEMENTED messages. Closes PR 2880.
1997-04-28 03:20:09 +00:00
steve
4d58ce1f53
Reorder declarations slightly.
1997-04-28 03:17:51 +00:00
steve
2d8d8d0891
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
1d8c8cc1cb
Nuke register keyword usage, #if -> #ifdef, and avoid void *
...
arithmetic.
Obtained from: NetBSD
1997-04-28 03:14:04 +00:00
steve
f7ea4486cb
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
a6b0a4171a
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
d629ba9f89
Add a type builtin and nuke register keyword usage.
...
Obtained from: NetBSD
1997-04-28 03:08:38 +00:00
steve
6869cb59bf
Nuke register keyword usage and #if -> #ifdef.
...
Obtained from: NetBSD
1997-04-28 03:06:52 +00:00
steve
313e34c452
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
ce525b762d
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
c95d878851
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
969cc91da0
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
9baabea624
Improve the wording in the NOTES section. Closes PR# 3223.
1997-04-08 20:27:48 +00:00
mpp
b886336680
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
cd84ece5fd
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
cdc0e920d8
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
a09ae5e9bd
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
ad42e7a13f
Use mkstemp rather than mktemp to prevent races.
...
Obtained from: OpenBSD
1997-03-24 05:45:29 +00:00
bde
1d35a01a65
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
909dc1b5d2
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
52b723e9b1
Merge from Lite2. Straightforward changes.
1997-03-13 17:29:08 +00:00
mpp
1b659768bd
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
6424c35fe5
Fix buffer overflow
1997-03-10 19:52:12 +00:00
guido
301e38a7c7
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
ee328d1053
Fix buffer overflow (probably unexploitable).
1997-03-10 19:10:08 +00:00
guido
b8d3beac13
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
d8a1c85007
Typo fix.
1997-03-07 01:58:56 +00:00
joerg
fbe645d9f1
Acitvate chio(1).
1997-03-06 15:30:53 +00:00
joerg
f80cb70ae2
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
ef8eca45e6
Big usernames fixes
1997-03-04 00:33:56 +00:00
ache
d653dc5901
Use MAXLOGNAME-1 for width because MAXLOGNAME includes NUL
1997-03-03 08:20:28 +00:00
mpp
5eda08fa42
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
peter
34fd560164
Revert $FreeBSD$ to $Id$
1997-02-22 14:13:04 +00:00
mpp
297ecb20eb
Use the .Bx macro in the HISTORY section.
1997-02-19 07:14:30 +00:00