| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
unless I manually construct y.tab.h. Is this normal?
|
| |
|
| |
|
|
|
|
| |
Urged by: bde
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
machine-independent code and try mounting the devices in the
lists instead of guessing alternative root devices in a machine-
dependent way.
autoconf.c:
Reject preposterous slice numbers instead of silently converting
them to COMPATIBILITY_SLICE.
Don't forget to force slice = COMPATIBILITY_SLICE in the floppy
device name.
Eliminated most magic numbers and magic device names in setroot().
Fixed dozens of style bugs.
vfs_conf.c:
Put the actual root device name instead of "root_device" in the
mount struct if the actual name is available. This is useful after
booting with -s. If it were set in all cases then it could be used
to do mount(8)'s ROOTSLICE_HUNT and fsck(8)'s hotroot guess better.
|
| |
|
| |
|
|
|
|
| |
to avoid recursive locking.
|
| |
|
| |
|
|
|
|
|
|
| |
Simplify the atomic lock prototype, removing the lock value.
Delete the unlock prototypes that are not required.
|
|
|
|
|
| |
Simplify the atomic lock to just write a value of 1 to the lock instead
of taking the value passed by the caller (which just confused things).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- don't announce `mtree' as `mtools'.
- don't install to ${DESTDIR}/usr/sbin (which often doesn't exist if
DESTDIR is set and may be read-only if DESTDIR is not set).
- install to (${WORLDTMP}/usr/sbin so that the new mtree is actually
in $PATH if DESTDIR is set.
- don't use the host make or the host sys.mk. This is probably
unimportant.
- use a temporary obj dir like the one for `make'. This was mainly
necessary because I forgot to remove the MAKEOBJDIRPREFIX unsetting
which was just a bug for mtree. A non-quick fix would handle mtree
more like a bootstrap tool (the only additional complications are to
create ${BINDIR} and avoid excessive cleaning). Except a non-quick
fix would change much more.
|
| |
|
|
|
|
| |
PR: conf/3273
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
buffer -1 since readlink adds its own NUL to the end.
Inspired by: Similar changes in OpenBSD
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
o Use snprintf rather than sprintf
This is only lightly tested.
|
| |
|
|
|
|
| |
Submitted by: J. Assange a long time ago.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
o Use strncpy correctly.
o Use enough buffer for line.
Inspired by or Obtained from: Similar changes in OpenBSD
|
|
|
|
|
|
| |
NUL at the end of the path.
Inspired by: OpenBSD's changes in this area by theo de raadt
|
|
|
|
|
| |
$n.
PR: conf/3273
|
|
|
|
| |
Obtained from or inspired by: A similar change in OpenBSD by theo
|
|
|
|
|
| |
NUL at the end of the path.
Inspired by: OpenBSD's changes in this area by theo de raadt
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
makesyscalls.sh generating it as pollution.
Don't attempt to separate the includes by newlines. makesyscalls.sh
just ignores newlines.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
(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>
|
|
|
|
| |
Submitted by: "Mike Del" <repenting@hotmail.com>
|
|
|
|
| |
Ignore errors from the chflags command that follows it, just in case.
|
|
|
|
| |
it may be in the text segment and write protected.
|
|
|
|
|
| |
in README.changes.
Suggested by: stuart henderson <stuart@internationalschool.co.uk>
|
|
|
|
| |
Submitted by: phk
|
|
|
|
|
|
| |
readonly, since they tell us about previous write activity.
Use the correct format to print the write counts.
|
| |
|
|
|
|
| |
Fixed some style bugs in source (mostly, superfluous backslashes).
|
| |
|
|
|
|
|
|
|
| |
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)).
|
| |
|
|
|
|
| |
emulated elf binaries).
|
|
|
|
|
| |
Doesn't people check their code before committing anymore, it could
at least compile ????
|
| |
|
| |
|