| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
|
|
|
|
|
| |
so if a problem is encountered with this the whole set needs backout
and study.
|
|
|
|
| |
Found with cppcheck. ok krw@
|
|
|
|
|
| |
has been fixed in FreeBSD in 2002. No binary change.
From Alexander von Gernler; OK krw@
|
|
|
|
|
|
|
| |
a DIOCGPDINFO that could be applied to a non-disk and thus cause a
crash. After that ioctl, the program continues with pledge "stdio".
ok beck semarie
|
| |
|
|
|
|
|
| |
resistant against memory correctup, if a corrupt filesystem is given to them.
ok krw
|
|
|
|
|
|
|
|
|
|
| |
a point where open() and disklabel reading have completed. After that
point, pledge "stdio".
As a result, an fsck of a hostile partition (noone ever does that, or
do they? :) is done by a program with SUBSTANTIALLY less system call
exposure.
ok semarie
|
|
|
|
|
|
| |
will be calling these directly, and not for the multiple filesystem case.
fsck(8) is generally the parent and will handle things.
ok semarie; this change will also help a goal jsing has
|
|
|
|
| |
ok beck@ millert@
|
|
|
|
|
| |
malloc, calloc, realloc*
ok krw millert
|
|
|
|
|
|
| |
from michael mcconville
ok deraadt
|
|
|
|
|
|
|
|
|
| |
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
|
|
|
| |
ok espie@ deraadt@ millert@ tedu@
|
|
|
|
|
|
|
| |
about cluster chains. If the user didn't want to fix them at that time,
he asks for trouble -- and these checks didn't help in all cases either.
discussed with and ok krw@
|
|
|
|
|
|
| |
Merged from NetBSD revision 1.24.
ok krw@ (who came up with the same diff)
|
|
|
|
|
|
|
| |
Addressed by NetBSD in revision 1.24, but instead of ignoring the filename,
consider it invalid -- because it is.
ok krw@, tedu@
|
|
|
|
| |
ok krw@
|
|
|
|
|
|
| |
Merged from Android (commitid 6c29bbe8d58e6fe8755935a04166ecf82ff31f47)
ok krw@
|
|
|
|
|
|
| |
release all reserved memory chunks in all error cases.
with input by and ok tedu@, ok deraadt@
|
|
|
|
|
|
| |
superfluous clusters can lead to out of boundary access.
ok krw@
|
|
|
|
|
|
| |
Move to 2 clause license, approved by Wolfgang Solfrank.
ok deraadt@, krw@
|
|
|
|
|
|
|
| |
Inspired by Android's commit b6ee08aadb580341a4d80943741b80de16a88b5d,
but fixing the actually offending cluster, not a random one.
ok krw@
|
|
|
|
| |
ok krw@
|
|
|
|
| |
ok krw@
|
| |
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
| |
Merged from Android (commit id 59ae828834dc177c74775cf36cafda4da9927bd9).
ok deraadt@
|
|
|
|
| |
ok miod@
|
|
|
|
|
|
|
|
|
|
|
|
| |
by and fixes tested by Alexey Vatchenko.
Add a bunch of tests and error messages so whatever media/devices
this breaks will be more easily fixed.
Ignore invalid signatures since we have other checks and many media
have missing signatures.
Use character device to read disk even when called directly.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
when fsck is run against a disklabel UID. This allows a user to determine
which device is really being scanned.
ok krw@
|
|
|
|
|
|
|
| |
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
|
| |
|
|
|
|
| |
ok jmc@
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
since some vendor utilities will change one without changing the
other. Raised most recently by Nick Guenther; fix is similar to
what is in NetBSD, but includes an idea from Steven E. Kalbach
<kalbachs (at) kalbachsoft (dot) com>, posted to bugs@ over 5 years
ago.
ok tedu@, pedro@
|
|
|
|
|
|
| |
using a home rolled version.
ok pedro@
|
|
|
|
| |
suggested by kjell@; ok otto@ pat@ millert@ jaredy@
|
|
|
|
|
| |
wished for this for 10+ year, but always forgotten to make the change
after cleaning up a nasty file system; ok pedro millert
|
|
|
|
| |
ok otto@ deraadt@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- filesystem -> file system, for consistency
- indent sections where applicable
- mdoc, punctuation, grammar, etc. fixes
- document SIGINFO to fsck_ffs
- unify description of -n among documents
- sprinkle xrefs all around
- move parts relevant to fsck.8 from fsck_ffs.8
parts from NetBSD
ok jmc
|
| |
|
| |
|
| |
|