Tim Vanderhoek
7b31132c01
Fix bug from last commit: don't SEGV when reading as part of a pipe.
1998-07-04 01:22:07 +00:00
Tim Vanderhoek
2c4d94647c
Use '-e' when viewing helpfile.
1998-07-03 23:01:33 +00:00
Tim Vanderhoek
36c29707b7
Prevent recursive help)elp)elping.
1998-07-03 17:12:10 +00:00
Søren Schmidt
66fa510625
Add missing ')'..
...
Doesn't anybody TEST code before committing....
This is the X'th time these laste couble of days...
1998-07-02 14:07:31 +00:00
Warner Losh
50e040d480
o Be more careful about using sprintf and strcpy.
1998-07-02 05:23:55 +00:00
Warner Losh
f15b742fdd
o typo: will -> with
1998-07-02 05:21:36 +00:00
Warner Losh
cf0ad320e4
o fix bug in conversion of DOS 32-bit signed number to FreeBSD's 64-bit
...
off_t.
This fixed the primitive 'copy protection' that the program I'm using.
1998-07-02 05:12:53 +00:00
Warner Losh
e1603e453d
Kill printf accidentally committed
1998-07-01 23:31:53 +00:00
Warner Losh
39a1ad8654
Make sourcer's main program execute in X mode.
...
o Make the dos emulation treat c: and C: the same way. Sourcer was doing
a chdir("c:\\") rather than a chdir("C:\\");
o use drlton() in all places where we used to use -'A' so that we're always
case independent.
o use drntol() in all places where we used to use + 'A' for similar reasons
1998-07-01 19:56:17 +00:00
Warner Losh
4e47f901f9
Implement int 2f ax=1600, which is, according to the Interrupt List,
...
used to check to see if windows 3.x if running. We always return 0,
which means that neither Windows 3.x nor Windows/386 2.x is running. It
also means, btw, that XMS version 1 isn't installed, which is true since
we don't implement that either.
1998-06-30 22:23:06 +00:00
Bruce Evans
a8c09dabbd
Don't assume that time_t is long.
1998-06-29 17:25:46 +00:00
Bruce Evans
375557fcad
Don't assume that time_t is long.
1998-06-29 17:06:00 +00:00
Bruce Evans
39470616b1
Don't assume that time_t is long.
1998-06-29 15:52:49 +00:00
Steve Price
d79e6e1601
Fix a few typos.
...
PR: 7092
Submitted by: Kauzo Horikawa <h-horik@yk.rim.or.jp>
1998-06-27 20:32:41 +00:00
Robert Nordier
d41e2bb8a1
Correct typo: loosing --> losing
1998-06-26 14:25:18 +00:00
Guy Helmer
a57a22d25f
Update vmstat portion of man page to reflect the statistics currently
...
shown by systat's vmstat display.
PR: docs/3764
1998-06-25 22:04:48 +00:00
Peter Wemm
7288c50357
Merge ppp 2.3.3 -> 2.3.5 changes (for what it's worth)
1998-06-23 21:58:41 +00:00
Guy Helmer
e063c51e70
Minor grammar and punctuation cleanup.
...
Reference /etc/periodic/daily instead of /etc/crontab.
1998-06-23 16:52:59 +00:00
Dmitrij Tejblum
8fbaa58a29
Make value of SIZE accurate.
...
Obtained from: ps(1)
1998-06-21 18:00:34 +00:00
Wolfram Schneider
a2f2188044
Create a save TMPDIR using `mktemp -d'.
1998-06-18 09:26:22 +00:00
Joseph Koshy
a3e5bc4fb5
Remove compile time dependency on ARG_MAX.
...
This fix only removes the dependency on compile time constants. The code
has other (old) problems that need to be addressed.
PR: 1791
Reviewed-by: bde, tegge
1998-06-17 12:58:43 +00:00
Steve Price
a84507eabd
sprintf -> snprintf to avoid potential buffer overflow.
...
PR: 6907
Submitted by: Archie Cobbs <archie@whistle.com>
1998-06-14 16:03:40 +00:00
Steve Price
a05ac887c5
Correct the description of the last four fields.
...
PR: 6926
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-13 19:14:14 +00:00
Peter Wemm
b9305a0668
Make -V expand it's arguments. This means that instead of 'make -V OBJS'
...
printing something useless (to a shell) like: ${SRCS:N*.h:R:S/$/.o/g}
it will instead print the actual ${OBJS} value.
1998-06-13 11:55:57 +00:00
Peter Wemm
0cb730b0dc
"./strip maybe_stripped" doesn't work too well if maybe_stripped is an
...
elf executable..
1998-06-12 16:22:25 +00:00
Peter Wemm
5307b90005
The doscmd build process and doscmd.kernel loader is very a.out specific
...
and doesn't fly too well on in an elf enviroment yet.
1998-06-12 16:18:27 +00:00
Peter Wemm
9ec49abd00
#include <arpa/inet.h>
1998-06-12 14:18:33 +00:00
Peter Wemm
932d41914f
Add -DFREEBSD_AOUT to CFLAGS to ensure we get the correct definitions
...
from <link.h>
1998-06-12 14:11:15 +00:00
Peter Wemm
28faa5304b
#include <arpa/inet.h>
...
Also, use real struct in_addr rather than u_long.
1998-06-12 13:04:59 +00:00
Peter Wemm
a60c62a3c0
#include <arpa/inet.h>
1998-06-12 12:55:46 +00:00
Peter Wemm
2180733f75
#include <arpa/inet.h>
1998-06-12 12:37:15 +00:00
Andrey A. Chernov
abf0f067cf
Local filesystems are ufs not ffs
...
Submitted by: "D. Rock" <rock@cs.uni-sb.de>
1998-06-11 03:47:29 +00:00
Peter Hawkins
a1fca66a0b
Submitted by: Peter Hawkins thepish@freebsd.org
...
Small man page fix (missing ']' in [:alpha:] example)
1998-06-11 02:14:58 +00:00
Poul-Henning Kamp
1499abeef4
Spelling fixes.
...
PR: 6903
Reviewed by: phk
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-10 12:34:27 +00:00
Peter Wemm
30035fd505
fchflags(8) -> fchflags(2)
...
Submitted by: Kenneth Merry <ken@plutotech.com>
Also, while here, mention that other FS's don't do flags.
1998-06-10 07:17:59 +00:00
Warner Losh
5dbf068b1e
sizeof(foo - 1) isn't the same as sizeof(foo) - 1.
...
Pointed out by: Theo De Raadt.
1998-06-09 14:51:05 +00:00
Warner Losh
fd67e2c50e
Remove unused strvisx.
1998-06-09 04:35:20 +00:00
Warner Losh
a716ad6693
Don't assume that hp->h_lenght == 4. Be conservative in its use.
...
Submitted by: J. Assange a long time ago.
1998-06-09 04:31:02 +00:00
Warner Losh
f34c49eb54
o Use snprintf rather than sprintf.
...
o Revert gid to caller before a shell so we can run setgid.
o minor style nits to make bruce happy :-)
o use strncpy correctly.
1998-06-09 04:28:05 +00:00
Warner Losh
fae4b464e3
Use mkstemp rather than mktemp for yacc's temp files. This change was made
...
to OpenBSD a long time ago and to my tree shortly thereafter. I think theo
made this change, or one similar to it, but I could be wrong.
1998-06-09 04:20:51 +00:00
Warner Losh
448b84a0e4
o Use snprintf rather than sprintf
...
o Add more checks for buffer overflows
o Use snprintf rather than strcat/cpy and have better checks for max
length exceeded.
Most of these changes are not exploitable buffer overruns, but it never
hurts to be safe.
Inspired by and obtained from: OpenBSD
1998-06-09 04:17:29 +00:00
Warner Losh
9a1f6729af
o Use snprintf over sprintf.
...
o Use strncpy correctly.
o Use enough buffer for line.
Inspired by or Obtained from: Similar changes in OpenBSD
1998-06-09 04:13:03 +00:00
Warner Losh
c788c9b224
Make sure we pass the length - 1 to readlink, since it adds its own
...
NUL at the end of the path.
Inspired by: OpenBSD's changes in this area by theo de raadt
1998-06-09 04:10:08 +00:00
Warner Losh
205a8ea824
$@ is deprecated, use ${.TARGET} instead. Ditto for other single character
...
$n.
PR: conf/3273
1998-06-09 04:07:23 +00:00
Joseph Koshy
5a41edb419
Reword to remove confusion between su(1)'s "-c" option and that of the shell
...
being invoked. Add example that clarifies usage of "-c".
PR: 6859
1998-06-08 05:29:51 +00:00
Peter Hawkins
504986d33e
PR: docs/5628
...
Submitted by: MITSUNAGA Noriaki mitchy@er.ams.eng.osaka-u.ac.jp
Correct formatting error in display of the "-i size" option description section.
1998-06-06 15:16:02 +00:00
Steve Price
32c2131395
Fix a bunch of spelling errors.
...
PR: 6856
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-04 21:06:07 +00:00
Bruce Evans
822aa079ec
Don't forget to pretend that `make -n -jN' makes the targets that it
...
says it pretends to make.
This bug was apparently harmless except for normal cases involving
.ORDER statements when it made debugging of -jN using -n very
confusing. E.g., for:
.ORDER: beforedepend .depend
depend: beforedepend .depend
where beforedepend depends on something so that it is not initially
up to date, `make [-n] -j2 depend' causes `make' to wait for itself
to make beforedepend. This works fine without -n. The job to make
beforedepend has normally been started, and beforedepend is marked
as made when the job completes. However, with -n, the pseudo-job
for making beforedepend has normally completed, and in any case
there was no chance of beforedepend being marked as made. `make'
actually exited almost immediately with status 0 instead of waiting
forever.
1998-06-04 05:48:57 +00:00
Joseph Koshy
9595a75afa
Spelling corrections.
...
PR: 6829
Submitted by: Josh Gilliam <josh@quick.net>
1998-06-03 04:21:41 +00:00
Peter Hawkins
968d4e7fe2
PR: bin/6828
...
Submitted by: njs3@doc.ic.ac.uk
Obtained from: NetBSD
Implement embedded variable expansion
1998-06-02 13:11:04 +00:00