imp
5a2b97449d
$@ deprecated, use long form.
...
PR: conf/3273
1998-06-09 05:14:43 +00:00
imp
887f1b959b
If we get back too much data to fit in result, return NULL. This avoids
...
a buffer overflow, but might negatively impact those hosts who have
enough aliases to fill MAXHOSTNAMELEN * 2 characters in them.
Good candidate for merging back into -stable. Lightly tested by me, but
it came from OpenBSD a while ago.
Obtained from: OpenBSD
1998-06-09 05:06:27 +00:00
imp
eba733f6ce
Use correct size for readlink buffer. This is the size of the
...
buffer -1 since readlink adds its own NUL to the end.
Inspired by: Similar changes in OpenBSD
1998-06-09 05:02:29 +00:00
imp
87738602a9
use strncpy correctly
...
use strncat correctly
check buffer size in graph_name
Change paths from /tmp to /var/run for server sockets
This has been building in my tree for ages, but has remained lightly
tested.
Reviewed by: jkh ages ago
1998-06-09 05:01:38 +00:00
imp
d07721cd78
o be careful about buffer overflows
...
o Use snprintf rather than sprintf
This is only lightly tested.
1998-06-09 04:58:36 +00:00
imp
078b9d996a
Remove unused strvisx.
1998-06-09 04:35:20 +00:00
imp
8c96be00ef
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
imp
9a6732bd4e
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
imp
765f577232
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
imp
a51cfac665
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
imp
94f67b7ef5
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
imp
41a9e1ce2d
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
imp
276491a1c6
$@ is deprecated, use ${.TARGET} instead. Ditto for other single character
...
$n.
PR: conf/3273
1998-06-09 04:07:23 +00:00
imp
bfab679fdd
Make sure we don't overflow the path buffer. Exit if we do.
...
Obtained from or inspired by: A similar change in OpenBSD by theo
1998-06-09 03:39:38 +00:00
imp
c530c6747a
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 03:38:43 +00:00
bde
ced2b136af
Updated generated files.
1998-06-09 03:36:59 +00:00
bde
af177df363
Don't generate COMPAT_43 cruft if there are no COMPAT_43 syscalls.
...
In particular, don't generate an include of "opt_compat.h" if it
wouldn't affect anything we create. This will fix recent breakage
of the ibcs2 LKM. The ibcs2 syscall files were not regenerated
properly, so the LKM didn't break immediately when we started
generating this extraneous include.
1998-06-09 03:32:05 +00:00
bde
db50a6d677
Include "opt_compat.h" explicitly instead of depending on
...
makesyscalls.sh generating it as pollution.
Don't attempt to separate the includes by newlines. makesyscalls.sh
just ignores newlines.
1998-06-09 03:28:14 +00:00
bde
3361288ff0
Fixed `make depend', which I broke here about a month ago by moving
...
the null default for `depend' from bsd.dep.mk to bsd.obj.mk.
bsd.kmod.mk included these files in a bad order, so it picked up
the null default.
1998-06-09 02:55:40 +00:00
julian
b4e8c144c1
The version of the softdep changes in FreeBSD broke the
...
(doingdirectory && !newparent) case of ufs_rename().
rename("D1/X/", "D2/Y/") gives a wrong link count for D2.
Submitted by: Bruce Evans <bde@zeta.org.au>
Reviewed by: Kirk McKusick <mckusick@McKusick.COM>
1998-06-08 23:55:33 +00:00
nate
ca271071fd
- Added entry for Xircon CreditCard Modem.
...
Submitted by: "Mike Del" <repenting@hotmail.com>
1998-06-08 21:10:41 +00:00
jdp
ee68d1afd8
My previous change could conceivably succeed at removing CHROOTDIR.
...
Ignore errors from the chflags command that follows it, just in case.
1998-06-08 20:58:02 +00:00
julian
766e2fd6c2
Don't let ifunit() modify the string passed as an argument.
...
it may be in the text segment and write protected.
1998-06-08 20:33:29 +00:00
brian
9dff09c0b4
Correct `set server'' usage and add mention that
`set ns'' changed
...
in README.changes.
Suggested by: stuart henderson <stuart@internationalschool.co.uk>
1998-06-08 20:23:44 +00:00
dyson
bfd1d29a9f
Remove some junk left over from a previous commit.
...
Submitted by: phk
1998-06-08 18:18:28 +00:00
bde
097007d02b
Print the write counts if they are nonzero even if we're mounted
...
readonly, since they tell us about previous write activity.
Use the correct format to print the write counts.
1998-06-08 14:08:54 +00:00
bde
c799e18e37
Updated generated files.
1998-06-08 11:08:35 +00:00
bde
11d8d54296
Fixed some style bugs in output (missing tabs and unparenthesized macros).
...
Fixed some style bugs in source (mostly, superfluous backslashes).
1998-06-08 11:02:00 +00:00
jb
ba935f3272
Add LIB_SPEC (same as on i386) so that gcc knows about libc_r.
1998-06-08 10:58:36 +00:00
bde
566ee5c323
Fixed pedantic semantics errors (bitfields not of type int, signed int
...
or unsigned int (this doesn't change the struct layout, size or
alignment in any of the files changed in this commit, at least for
gcc on i386's. Using bitfields of type u_char may affect size and
alignment but not packing)).
1998-06-08 09:47:47 +00:00
dfr
faa17713f8
Fix more of my DDB breakage.
1998-06-08 09:23:24 +00:00
dfr
707faaecf6
Fix a typo which prevented i386 elf from working at all (including Linux
...
emulated elf binaries).
1998-06-08 09:19:35 +00:00
sos
fe1d05742f
Correct even more ioctl breakage :(
...
Doesn't people check their code before committing anymore, it could
at least compile ????
1998-06-08 09:00:28 +00:00
kato
2c9e07b212
Sync with sys/i386/isa/clock.c revision 1.123.
1998-06-08 08:56:43 +00:00
kato
83707e06e7
Merge 64bit portability fixes from sys/i386 stuff.
1998-06-08 08:55:47 +00:00
bde
1fcff6c692
Fixed pedantic semantics errors (bitfields not of type int, signed int
...
or unsigned int (don't do this in one case where it would change the
object file)).
1998-06-08 08:50:43 +00:00
dfr
a7c0d1c5c9
Make DDB work again after I broke it :-(.
1998-06-08 08:43:20 +00:00
charnier
12c0eabbe1
Add rcsid, remove unused #includes. Use err(3).
1998-06-08 06:44:05 +00:00
jkoshy
350780df49
Fix spelling in printf().
1998-06-08 06:42:34 +00:00
charnier
3aaa3dc793
Use warnx()+fprintf() to handle multi-line messages. Correct K&R support and
...
KNF continuation indent rule.
Requested by: Bruce.
1998-06-08 06:41:47 +00:00
bde
3ee711b2cb
Updated yet another ioctl, and put wst in LINT to inhibit further bitrot.
1998-06-08 06:18:53 +00:00
jkoshy
75e70dcdb0
Spelling fixes.
...
Submitted by: Josh Gilliam <josh@quick.net>
PR: 6880
1998-06-08 06:12:02 +00:00
bde
0801d7c827
ip_fil.h has 9 separate declarations of iplioctl() in a disgusting
...
ifdef tangle. The previous commit to ip_fil.h didn't change the
one that actually applies to the current FreeBSD kernel, of course.
Fixed.
Fixed style bugs in previous commit to ip_fil.h.
1998-06-08 06:04:12 +00:00
jkoshy
8cfd64279d
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
dyson
a11c41dcfc
Disable attempted write combining support. This probably
...
causes more trouble than help (for now.)
1998-06-08 04:07:51 +00:00
bde
a396b761ea
Fixed an ioctl which grew overnight.
1998-06-08 02:43:12 +00:00
bde
2f5fcc4998
Backed out previous commit, which just consisted of a 1-byte editing
...
error.
1998-06-08 02:15:37 +00:00
bde
9ac818096c
Fixed missing ifdefs and disordering in previous commit.
1998-06-08 02:12:19 +00:00
bde
128c893269
Fixed ifdef bogotification in previous commit.
1998-06-08 02:11:19 +00:00
danny
963f0a7720
Fix typo: exit -> exist
1998-06-08 02:00:45 +00:00