#
1.41 |
|
12-Jul-2021 |
beck |
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@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
|
#
1.40 |
|
28-Jun-2019 |
deraadt |
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.
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.39 |
|
24-Sep-2018 |
deraadt |
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.
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.38 |
|
23-Nov-2015 |
deraadt |
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
|
Revision tags: OPENBSD_5_8_BASE
|
#
1.37 |
|
29-May-2015 |
deraadt |
do not need non-NULL-check before free(p), other minor refactoring from Benjamin Baier
|
#
1.36 |
|
29-May-2015 |
deraadt |
remove duplicate assignments; from Benjamin Baier
|
#
1.35 |
|
18-Apr-2015 |
deraadt |
Convert many atoi() calls to strtonum(), adding range checks and failure handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
|
#
1.34 |
|
20-Mar-2015 |
millert |
Fix cut & pasto in warning message; from Andre Smagin
|
Revision tags: OPENBSD_5_7_BASE
|
#
1.33 |
|
16-Jan-2015 |
deraadt |
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)
|
#
1.32 |
|
17-Oct-2014 |
deraadt |
trivial replacement with reallocarray()
|
#
1.31 |
|
08-Oct-2014 |
deraadt |
replace internal erealloc() with ereallocarray(), and then use it to spot mult int overflow
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.30 |
|
13-Jul-2014 |
jmc |
-N for SYNOPSIS and usage(), and some small changes to previous;
|
#
1.29 |
|
13-Jul-2014 |
claudio |
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@
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.28 |
|
17-Nov-2010 |
jsing |
Try to determine file system type using readlabelfs(3) if fsck is given a disklabel UID.
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.27 |
|
27-Oct-2009 |
deraadt |
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
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.26 |
|
20-Oct-2007 |
sobrado |
add missing [-b block#] to the usage of fsck(8)
ok jmc@
|
#
1.25 |
|
20-Oct-2007 |
sobrado |
an usage message should fit on a 80-column display
ok jmc@
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
|
#
1.24 |
|
20-Mar-2006 |
dhill |
NetBSD Coverity CID 1745: Fix memory leak.
yes otto@
|
Revision tags: OPENBSD_3_9_BASE
|
#
1.23 |
|
21-Nov-2005 |
millert |
Accept and pass through -b option for fsck_ffs and fsck_ext2fs OK mickey@
|
#
1.22 |
|
12-Nov-2005 |
deraadt |
use snprintf; ok cloder dhill@mindcry.org
|
#
1.21 |
|
28-Oct-2005 |
otto |
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@
|
#
1.20 |
|
15-Oct-2005 |
otto |
Use queue macros instead of directly accessing fields. ok miod@ aaron@ jaredy@ patrick@ millert@
|
Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE
|
#
1.19 |
|
03-Feb-2005 |
jaredy |
sync usage output
|
Revision tags: OPENBSD_3_6_BASE
|
#
1.18 |
|
28-Jul-2004 |
jmc |
- sort options - sync usage() - use -keeps for SYNOPSIS
|
Revision tags: OPENBSD_3_5_BASE
|
#
1.17 |
|
13-Jan-2004 |
otto |
Use = for assignment, not == ok millert@
|
#
1.16 |
|
25-Sep-2003 |
deraadt |
do not crank size before erealloc
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.15 |
|
29-Jul-2003 |
millert |
If euid == 0 make datasize unlimited instead of cranking to the max value returned by getrlimit(). Avoid resource limit issues when fscking very large filesystems.
|
#
1.14 |
|
26-Jun-2003 |
tedu |
const the rcsid, and make it say OpenBSD
|
#
1.13 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.12 |
|
17-Oct-2002 |
brad |
sync usage(). -- Ok'd by: deraadt@
|
Revision tags: OPENBSD_3_2_BASE
|
#
1.11 |
|
03-Jul-2002 |
deraadt |
ansi
|
#
1.10 |
|
09-Jun-2002 |
todd |
rm trailing whitespace
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.9 |
|
17-Feb-2002 |
millert |
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
|
#
1.8 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.7 |
|
07-Jul-2001 |
deraadt |
major -Wall cleanup, almost complete
|
Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
|
#
1.6 |
|
28-Feb-1997 |
millert |
Set data size resource limit to its max value so fsck will work on large disks (and ccd's).
|
#
1.5 |
|
23-Dec-1996 |
downsj |
readlabelfs()
|
#
1.4 |
|
04-Dec-1996 |
deraadt |
vfork bye bye
|
#
1.3 |
|
04-Dec-1996 |
deraadt |
nice argv[0], please do not bite me
|
#
1.2 |
|
04-Dec-1996 |
deraadt |
use readlabelfs() if possible
|
#
1.1 |
|
20-Oct-1996 |
tholo |
Sync with NetBSD 961019
|
#
1.40 |
|
28-Jun-2019 |
deraadt |
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.
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.39 |
|
24-Sep-2018 |
deraadt |
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.
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.38 |
|
23-Nov-2015 |
deraadt |
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
|
Revision tags: OPENBSD_5_8_BASE
|
#
1.37 |
|
29-May-2015 |
deraadt |
do not need non-NULL-check before free(p), other minor refactoring from Benjamin Baier
|
#
1.36 |
|
29-May-2015 |
deraadt |
remove duplicate assignments; from Benjamin Baier
|
#
1.35 |
|
18-Apr-2015 |
deraadt |
Convert many atoi() calls to strtonum(), adding range checks and failure handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
|
#
1.34 |
|
20-Mar-2015 |
millert |
Fix cut & pasto in warning message; from Andre Smagin
|
Revision tags: OPENBSD_5_7_BASE
|
#
1.33 |
|
16-Jan-2015 |
deraadt |
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)
|
#
1.32 |
|
17-Oct-2014 |
deraadt |
trivial replacement with reallocarray()
|
#
1.31 |
|
08-Oct-2014 |
deraadt |
replace internal erealloc() with ereallocarray(), and then use it to spot mult int overflow
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.30 |
|
13-Jul-2014 |
jmc |
-N for SYNOPSIS and usage(), and some small changes to previous;
|
#
1.29 |
|
13-Jul-2014 |
claudio |
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@
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.28 |
|
17-Nov-2010 |
jsing |
Try to determine file system type using readlabelfs(3) if fsck is given a disklabel UID.
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.27 |
|
27-Oct-2009 |
deraadt |
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
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.26 |
|
20-Oct-2007 |
sobrado |
add missing [-b block#] to the usage of fsck(8)
ok jmc@
|
#
1.25 |
|
20-Oct-2007 |
sobrado |
an usage message should fit on a 80-column display
ok jmc@
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
|
#
1.24 |
|
20-Mar-2006 |
dhill |
NetBSD Coverity CID 1745: Fix memory leak.
yes otto@
|
Revision tags: OPENBSD_3_9_BASE
|
#
1.23 |
|
21-Nov-2005 |
millert |
Accept and pass through -b option for fsck_ffs and fsck_ext2fs OK mickey@
|
#
1.22 |
|
12-Nov-2005 |
deraadt |
use snprintf; ok cloder dhill@mindcry.org
|
#
1.21 |
|
28-Oct-2005 |
otto |
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@
|
#
1.20 |
|
15-Oct-2005 |
otto |
Use queue macros instead of directly accessing fields. ok miod@ aaron@ jaredy@ patrick@ millert@
|
Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE
|
#
1.19 |
|
03-Feb-2005 |
jaredy |
sync usage output
|
Revision tags: OPENBSD_3_6_BASE
|
#
1.18 |
|
28-Jul-2004 |
jmc |
- sort options - sync usage() - use -keeps for SYNOPSIS
|
Revision tags: OPENBSD_3_5_BASE
|
#
1.17 |
|
13-Jan-2004 |
otto |
Use = for assignment, not == ok millert@
|
#
1.16 |
|
25-Sep-2003 |
deraadt |
do not crank size before erealloc
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.15 |
|
29-Jul-2003 |
millert |
If euid == 0 make datasize unlimited instead of cranking to the max value returned by getrlimit(). Avoid resource limit issues when fscking very large filesystems.
|
#
1.14 |
|
26-Jun-2003 |
tedu |
const the rcsid, and make it say OpenBSD
|
#
1.13 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.12 |
|
17-Oct-2002 |
brad |
sync usage(). -- Ok'd by: deraadt@
|
Revision tags: OPENBSD_3_2_BASE
|
#
1.11 |
|
03-Jul-2002 |
deraadt |
ansi
|
#
1.10 |
|
09-Jun-2002 |
todd |
rm trailing whitespace
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.9 |
|
17-Feb-2002 |
millert |
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
|
#
1.8 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.7 |
|
07-Jul-2001 |
deraadt |
major -Wall cleanup, almost complete
|
Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
|
#
1.6 |
|
28-Feb-1997 |
millert |
Set data size resource limit to its max value so fsck will work on large disks (and ccd's).
|
#
1.5 |
|
23-Dec-1996 |
downsj |
readlabelfs()
|
#
1.4 |
|
04-Dec-1996 |
deraadt |
vfork bye bye
|
#
1.3 |
|
04-Dec-1996 |
deraadt |
nice argv[0], please do not bite me
|
#
1.2 |
|
04-Dec-1996 |
deraadt |
use readlabelfs() if possible
|
#
1.1 |
|
20-Oct-1996 |
tholo |
Sync with NetBSD 961019
|
#
1.39 |
|
24-Sep-2018 |
deraadt |
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.
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.38 |
|
23-Nov-2015 |
deraadt |
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
|
Revision tags: OPENBSD_5_8_BASE
|
#
1.37 |
|
29-May-2015 |
deraadt |
do not need non-NULL-check before free(p), other minor refactoring from Benjamin Baier
|
#
1.36 |
|
29-May-2015 |
deraadt |
remove duplicate assignments; from Benjamin Baier
|
#
1.35 |
|
18-Apr-2015 |
deraadt |
Convert many atoi() calls to strtonum(), adding range checks and failure handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
|
#
1.34 |
|
20-Mar-2015 |
millert |
Fix cut & pasto in warning message; from Andre Smagin
|
Revision tags: OPENBSD_5_7_BASE
|
#
1.33 |
|
16-Jan-2015 |
deraadt |
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)
|
#
1.32 |
|
17-Oct-2014 |
deraadt |
trivial replacement with reallocarray()
|
#
1.31 |
|
08-Oct-2014 |
deraadt |
replace internal erealloc() with ereallocarray(), and then use it to spot mult int overflow
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.30 |
|
13-Jul-2014 |
jmc |
-N for SYNOPSIS and usage(), and some small changes to previous;
|
#
1.29 |
|
13-Jul-2014 |
claudio |
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@
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.28 |
|
17-Nov-2010 |
jsing |
Try to determine file system type using readlabelfs(3) if fsck is given a disklabel UID.
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.27 |
|
27-Oct-2009 |
deraadt |
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
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.26 |
|
20-Oct-2007 |
sobrado |
add missing [-b block#] to the usage of fsck(8)
ok jmc@
|
#
1.25 |
|
20-Oct-2007 |
sobrado |
an usage message should fit on a 80-column display
ok jmc@
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
|
#
1.24 |
|
20-Mar-2006 |
dhill |
NetBSD Coverity CID 1745: Fix memory leak.
yes otto@
|
Revision tags: OPENBSD_3_9_BASE
|
#
1.23 |
|
21-Nov-2005 |
millert |
Accept and pass through -b option for fsck_ffs and fsck_ext2fs OK mickey@
|
#
1.22 |
|
12-Nov-2005 |
deraadt |
use snprintf; ok cloder dhill@mindcry.org
|
#
1.21 |
|
28-Oct-2005 |
otto |
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@
|
#
1.20 |
|
15-Oct-2005 |
otto |
Use queue macros instead of directly accessing fields. ok miod@ aaron@ jaredy@ patrick@ millert@
|
Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE
|
#
1.19 |
|
03-Feb-2005 |
jaredy |
sync usage output
|
Revision tags: OPENBSD_3_6_BASE
|
#
1.18 |
|
28-Jul-2004 |
jmc |
- sort options - sync usage() - use -keeps for SYNOPSIS
|
Revision tags: OPENBSD_3_5_BASE
|
#
1.17 |
|
13-Jan-2004 |
otto |
Use = for assignment, not == ok millert@
|
#
1.16 |
|
25-Sep-2003 |
deraadt |
do not crank size before erealloc
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.15 |
|
29-Jul-2003 |
millert |
If euid == 0 make datasize unlimited instead of cranking to the max value returned by getrlimit(). Avoid resource limit issues when fscking very large filesystems.
|
#
1.14 |
|
26-Jun-2003 |
tedu |
const the rcsid, and make it say OpenBSD
|
#
1.13 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.12 |
|
17-Oct-2002 |
brad |
sync usage(). -- Ok'd by: deraadt@
|
Revision tags: OPENBSD_3_2_BASE
|
#
1.11 |
|
03-Jul-2002 |
deraadt |
ansi
|
#
1.10 |
|
09-Jun-2002 |
todd |
rm trailing whitespace
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.9 |
|
17-Feb-2002 |
millert |
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
|
#
1.8 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.7 |
|
07-Jul-2001 |
deraadt |
major -Wall cleanup, almost complete
|
Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
|
#
1.6 |
|
28-Feb-1997 |
millert |
Set data size resource limit to its max value so fsck will work on large disks (and ccd's).
|
#
1.5 |
|
23-Dec-1996 |
downsj |
readlabelfs()
|
#
1.4 |
|
04-Dec-1996 |
deraadt |
vfork bye bye
|
#
1.3 |
|
04-Dec-1996 |
deraadt |
nice argv[0], please do not bite me
|
#
1.2 |
|
04-Dec-1996 |
deraadt |
use readlabelfs() if possible
|
#
1.1 |
|
20-Oct-1996 |
tholo |
Sync with NetBSD 961019
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.38 |
|
23-Nov-2015 |
deraadt |
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
|
Revision tags: OPENBSD_5_8_BASE
|
#
1.37 |
|
29-May-2015 |
deraadt |
do not need non-NULL-check before free(p), other minor refactoring from Benjamin Baier
|
#
1.36 |
|
29-May-2015 |
deraadt |
remove duplicate assignments; from Benjamin Baier
|
#
1.35 |
|
18-Apr-2015 |
deraadt |
Convert many atoi() calls to strtonum(), adding range checks and failure handling along the way. Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
|
#
1.34 |
|
20-Mar-2015 |
millert |
Fix cut & pasto in warning message; from Andre Smagin
|
Revision tags: OPENBSD_5_7_BASE
|
#
1.33 |
|
16-Jan-2015 |
deraadt |
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)
|
#
1.32 |
|
17-Oct-2014 |
deraadt |
trivial replacement with reallocarray()
|
#
1.31 |
|
08-Oct-2014 |
deraadt |
replace internal erealloc() with ereallocarray(), and then use it to spot mult int overflow
|
Revision tags: OPENBSD_5_6_BASE
|
#
1.30 |
|
13-Jul-2014 |
jmc |
-N for SYNOPSIS and usage(), and some small changes to previous;
|
#
1.29 |
|
13-Jul-2014 |
claudio |
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@
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.28 |
|
17-Nov-2010 |
jsing |
Try to determine file system type using readlabelfs(3) if fsck is given a disklabel UID.
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
|
#
1.27 |
|
27-Oct-2009 |
deraadt |
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
|
Revision tags: OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.26 |
|
20-Oct-2007 |
sobrado |
add missing [-b block#] to the usage of fsck(8)
ok jmc@
|
#
1.25 |
|
20-Oct-2007 |
sobrado |
an usage message should fit on a 80-column display
ok jmc@
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
|
#
1.24 |
|
20-Mar-2006 |
dhill |
NetBSD Coverity CID 1745: Fix memory leak.
yes otto@
|
Revision tags: OPENBSD_3_9_BASE
|
#
1.23 |
|
21-Nov-2005 |
millert |
Accept and pass through -b option for fsck_ffs and fsck_ext2fs OK mickey@
|
#
1.22 |
|
12-Nov-2005 |
deraadt |
use snprintf; ok cloder dhill@mindcry.org
|
#
1.21 |
|
28-Oct-2005 |
otto |
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@
|
#
1.20 |
|
15-Oct-2005 |
otto |
Use queue macros instead of directly accessing fields. ok miod@ aaron@ jaredy@ patrick@ millert@
|
Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE
|
#
1.19 |
|
03-Feb-2005 |
jaredy |
sync usage output
|
Revision tags: OPENBSD_3_6_BASE
|
#
1.18 |
|
28-Jul-2004 |
jmc |
- sort options - sync usage() - use -keeps for SYNOPSIS
|
Revision tags: OPENBSD_3_5_BASE
|
#
1.17 |
|
13-Jan-2004 |
otto |
Use = for assignment, not == ok millert@
|
#
1.16 |
|
25-Sep-2003 |
deraadt |
do not crank size before erealloc
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.15 |
|
29-Jul-2003 |
millert |
If euid == 0 make datasize unlimited instead of cranking to the max value returned by getrlimit(). Avoid resource limit issues when fscking very large filesystems.
|
#
1.14 |
|
26-Jun-2003 |
tedu |
const the rcsid, and make it say OpenBSD
|
#
1.13 |
|
02-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.12 |
|
17-Oct-2002 |
brad |
sync usage(). -- Ok'd by: deraadt@
|
Revision tags: OPENBSD_3_2_BASE
|
#
1.11 |
|
03-Jul-2002 |
deraadt |
ansi
|
#
1.10 |
|
09-Jun-2002 |
todd |
rm trailing whitespace
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.9 |
|
17-Feb-2002 |
millert |
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
|
#
1.8 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
Revision tags: OPENBSD_3_0_BASE
|
#
1.7 |
|
07-Jul-2001 |
deraadt |
major -Wall cleanup, almost complete
|
Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE
|
#
1.6 |
|
28-Feb-1997 |
millert |
Set data size resource limit to its max value so fsck will work on large disks (and ccd's).
|
#
1.5 |
|
23-Dec-1996 |
downsj |
readlabelfs()
|
#
1.4 |
|
04-Dec-1996 |
deraadt |
vfork bye bye
|
#
1.3 |
|
04-Dec-1996 |
deraadt |
nice argv[0], please do not bite me
|
#
1.2 |
|
04-Dec-1996 |
deraadt |
use readlabelfs() if possible
|
#
1.1 |
|
20-Oct-1996 |
tholo |
Sync with NetBSD 961019
|