History log of /openbsd/sbin/fsck/fsck.c (Results 1 – 25 of 41)
Revision Date Author Comments
# bc5a8259 12-Jul-2021 beck <beck@openbsd.org>

Change the error reporting pattern throughout the tree when unveil
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.

Work done and verified by A

Change the error reporting pattern throughout the tree when unveil
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.

Work done and verified by Ashton Fagg <ashton@fagg.id.au>

ok deraadt@ semarie@ claudio@

show more ...


# df69c215 28-Jun-2019 deraadt <deraadt@openbsd.org>

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if

When system calls indicate an error they return -1, not some arbitrary
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.

show more ...


# c9112980 24-Sep-2018 deraadt <deraadt@openbsd.org>

Use unveil(2). These programs fit together in various strange ways,
so if a problem is encountered with this the whole set needs backout
and study.


# e384f6ef 23-Nov-2015 deraadt <deraadt@openbsd.org>

Use pledge "disklabel" as needed. The theory here is these tools become more
resistant against memory correctup, if a corrupt filesystem is given to them.
ok krw


# 34c2ea26 29-May-2015 deraadt <deraadt@openbsd.org>

do not need non-NULL-check before free(p), other minor refactoring
from Benjamin Baier


# aea918fd 29-May-2015 deraadt <deraadt@openbsd.org>

remove duplicate assignments; from Benjamin Baier


# a47b6461 18-Apr-2015 deraadt <deraadt@openbsd.org>

Convert many atoi() calls to strtonum(), adding range checks and failure
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert


# 66c75fc7 20-Mar-2015 millert <millert@openbsd.org>

Fix cut & pasto in warning message; from Andre Smagin


# b9fc9a72 16-Jan-2015 deraadt <deraadt@openbsd.org>

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N

Replace <sys/param.h> with <limits.h> and other less dirty headers where
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)

show more ...


# 6d0985b9 17-Oct-2014 deraadt <deraadt@openbsd.org>

trivial replacement with reallocarray()


# 119ae1ad 08-Oct-2014 deraadt <deraadt@openbsd.org>

replace internal erealloc() with ereallocarray(), and then use it to
spot mult int overflow


# 0e3c8ccc 13-Jul-2014 jmc <jmc@openbsd.org>

-N for SYNOPSIS and usage(), and some small changes to previous;


# 2babb8b2 13-Jul-2014 claudio <claudio@openbsd.org>

Intorduce the same -N flag that mount(8) just got to do the same
selection of file systems with option 'net'. Again this will be used
by the rc script to fsck iscsi file systems before mounting them.

Intorduce the same -N flag that mount(8) just got to do the same
selection of file systems with option 'net'. Again this will be used
by the rc script to fsck iscsi file systems before mounting them.
Again by default file systems with the net option are ignored when
scanning fstab.
"Get it in" deraadt@

show more ...


# 97e25138 17-Nov-2010 jsing <jsing@openbsd.org>

Try to determine file system type using readlabelfs(3) if fsck is given
a disklabel UID.


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(th

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
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

show more ...


# f9386f7e 20-Oct-2007 sobrado <sobrado@openbsd.org>

add missing [-b block#] to the usage of fsck(8)

ok jmc@


# b28a0cb5 20-Oct-2007 sobrado <sobrado@openbsd.org>

an usage message should fit on a 80-column display

ok jmc@


# 18c2ce40 20-Mar-2006 dhill <dhill@openbsd.org>

NetBSD Coverity CID 1745: Fix memory leak.

yes otto@


# 87e5b1db 21-Nov-2005 millert <millert@openbsd.org>

Accept and pass through -b option for fsck_ffs and fsck_ext2fs
OK mickey@


# e966780f 12-Nov-2005 deraadt <deraadt@openbsd.org>

use snprintf; ok cloder dhill@mindcry.org


# 74c87c28 28-Oct-2005 otto <otto@openbsd.org>

Change some TAILQ_FIRST() == NULL tests into TAILQ_EMPTY(). The first
form is valid, but in these cases its more clear to say what you
mean. ok pat@ henning@


# 441476a3 15-Oct-2005 otto <otto@openbsd.org>

Use queue macros instead of directly accessing fields. ok miod@ aaron@
jaredy@ patrick@ millert@


# f36f6633 03-Feb-2005 jaredy <jaredy@openbsd.org>

sync usage output


# e1bf7036 28-Jul-2004 jmc <jmc@openbsd.org>

- sort options
- sync usage()
- use -keeps for SYNOPSIS


# f76c2b66 13-Jan-2004 otto <otto@openbsd.org>

Use = for assignment, not ==
ok millert@


12