History log of /openbsd-current/sbin/fsdb/fsdbutil.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.21 09-May-2024 florian

ctime(3) and ctime_r(3) can fail when timestamps are way off.
Add missing error checks to all calls under sbin/

Input kettenis, millert
OK millert


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE OPENBSD_7_5_BASE
# 1.20 05-Feb-2019 deraadt

dev_t is signed to permit passing -1 as an invalid condition, but the
decomposition into major and minor is unsigned, so we should print them
with %u instead of %d.
ok guenther


Revision tags: OPENBSD_6_4_BASE
# 1.19 16-Sep-2018 millert

Use user_from_uid(3) and group_from_gid(3) in a few more places
that do repeated lookups. OK tb@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.18 29-Jul-2017 fcambus

Remove erroneous h length modifier, the argument has type 'int'.

OK deraadt@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.17 20-Jan-2015 deraadt

Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or
delete <sys/param.h> if now possible
ok guenther


# 1.16 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)


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.15 24-Apr-2013 deraadt

pretty print bigger off_t
ok tedu otto


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.14 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_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.13 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.12 10-Apr-2007 millert

Add support for ffs2 filesystems. From pedro@ based on the ufs2
changes in FreeBSD by Kirk McKusick.


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.11 19-Dec-2005 pedro

Add and use a few more constants and macros needed by UFS2
No functional change


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.10 25-Aug-2003 tedu

rename struct dinode to ufs1_dinode. clears the namespace and makes
way for some future work. no function changes yet.
help testing otto@ and markus@


# 1.9 11-Jun-2003 deraadt

ansification


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 09-Jun-2002 todd

rm trailing whitespace


Revision tags: OPENBSD_3_1_BASE
# 1.7 14-Mar-2002 mpech

Remove \n from err/errx/warn/warnx().

millert@ ok


Revision tags: OPENBSD_3_0_BASE
# 1.6 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.5 16-Jan-1997 millert

Update from NetBSD: adds chlen command and makes -Wall happy.


Revision tags: OPENBSD_2_0_BASE
# 1.4 21-Mar-1996 niklas

From NetBSD: Merge of 960317


# 1.3 16-Dec-1995 deraadt

handle time_t things that really are not time_t


# 1.2 13-Nov-1995 deraadt

time_t typecast; from bernd@arresum.inka.de; netbsd pr#1724


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.20 05-Feb-2019 deraadt

dev_t is signed to permit passing -1 as an invalid condition, but the
decomposition into major and minor is unsigned, so we should print them
with %u instead of %d.
ok guenther


Revision tags: OPENBSD_6_4_BASE
# 1.19 16-Sep-2018 millert

Use user_from_uid(3) and group_from_gid(3) in a few more places
that do repeated lookups. OK tb@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.18 29-Jul-2017 fcambus

Remove erroneous h length modifier, the argument has type 'int'.

OK deraadt@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.17 20-Jan-2015 deraadt

Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or
delete <sys/param.h> if now possible
ok guenther


# 1.16 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)


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.15 24-Apr-2013 deraadt

pretty print bigger off_t
ok tedu otto


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.14 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_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.13 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.12 10-Apr-2007 millert

Add support for ffs2 filesystems. From pedro@ based on the ufs2
changes in FreeBSD by Kirk McKusick.


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.11 19-Dec-2005 pedro

Add and use a few more constants and macros needed by UFS2
No functional change


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.10 25-Aug-2003 tedu

rename struct dinode to ufs1_dinode. clears the namespace and makes
way for some future work. no function changes yet.
help testing otto@ and markus@


# 1.9 11-Jun-2003 deraadt

ansification


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 09-Jun-2002 todd

rm trailing whitespace


Revision tags: OPENBSD_3_1_BASE
# 1.7 14-Mar-2002 mpech

Remove \n from err/errx/warn/warnx().

millert@ ok


Revision tags: OPENBSD_3_0_BASE
# 1.6 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.5 16-Jan-1997 millert

Update from NetBSD: adds chlen command and makes -Wall happy.


Revision tags: OPENBSD_2_0_BASE
# 1.4 21-Mar-1996 niklas

From NetBSD: Merge of 960317


# 1.3 16-Dec-1995 deraadt

handle time_t things that really are not time_t


# 1.2 13-Nov-1995 deraadt

time_t typecast; from bernd@arresum.inka.de; netbsd pr#1724


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.19 16-Sep-2018 millert

Use user_from_uid(3) and group_from_gid(3) in a few more places
that do repeated lookups. OK tb@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.18 29-Jul-2017 fcambus

Remove erroneous h length modifier, the argument has type 'int'.

OK deraadt@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.17 20-Jan-2015 deraadt

Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or
delete <sys/param.h> if now possible
ok guenther


# 1.16 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)


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.15 24-Apr-2013 deraadt

pretty print bigger off_t
ok tedu otto


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.14 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_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.13 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.12 10-Apr-2007 millert

Add support for ffs2 filesystems. From pedro@ based on the ufs2
changes in FreeBSD by Kirk McKusick.


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.11 19-Dec-2005 pedro

Add and use a few more constants and macros needed by UFS2
No functional change


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.10 25-Aug-2003 tedu

rename struct dinode to ufs1_dinode. clears the namespace and makes
way for some future work. no function changes yet.
help testing otto@ and markus@


# 1.9 11-Jun-2003 deraadt

ansification


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 09-Jun-2002 todd

rm trailing whitespace


Revision tags: OPENBSD_3_1_BASE
# 1.7 14-Mar-2002 mpech

Remove \n from err/errx/warn/warnx().

millert@ ok


Revision tags: OPENBSD_3_0_BASE
# 1.6 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.5 16-Jan-1997 millert

Update from NetBSD: adds chlen command and makes -Wall happy.


Revision tags: OPENBSD_2_0_BASE
# 1.4 21-Mar-1996 niklas

From NetBSD: Merge of 960317


# 1.3 16-Dec-1995 deraadt

handle time_t things that really are not time_t


# 1.2 13-Nov-1995 deraadt

time_t typecast; from bernd@arresum.inka.de; netbsd pr#1724


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_2_BASE
# 1.18 29-Jul-2017 fcambus

Remove erroneous h length modifier, the argument has type 'int'.

OK deraadt@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.17 20-Jan-2015 deraadt

Adjust <sys/param.h> comments regarding use of use of MAXFRAG, or
delete <sys/param.h> if now possible
ok guenther


# 1.16 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)


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.15 24-Apr-2013 deraadt

pretty print bigger off_t
ok tedu otto


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.14 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_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.13 26-Jun-2008 ray

First pass at removing clauses 3 and 4 from NetBSD licenses.

Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.

OK deraadt@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.12 10-Apr-2007 millert

Add support for ffs2 filesystems. From pedro@ based on the ufs2
changes in FreeBSD by Kirk McKusick.


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.11 19-Dec-2005 pedro

Add and use a few more constants and macros needed by UFS2
No functional change


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE
# 1.10 25-Aug-2003 tedu

rename struct dinode to ufs1_dinode. clears the namespace and makes
way for some future work. no function changes yet.
help testing otto@ and markus@


# 1.9 11-Jun-2003 deraadt

ansification


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 09-Jun-2002 todd

rm trailing whitespace


Revision tags: OPENBSD_3_1_BASE
# 1.7 14-Mar-2002 mpech

Remove \n from err/errx/warn/warnx().

millert@ ok


Revision tags: OPENBSD_3_0_BASE
# 1.6 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.5 16-Jan-1997 millert

Update from NetBSD: adds chlen command and makes -Wall happy.


Revision tags: OPENBSD_2_0_BASE
# 1.4 21-Mar-1996 niklas

From NetBSD: Merge of 960317


# 1.3 16-Dec-1995 deraadt

handle time_t things that really are not time_t


# 1.2 13-Nov-1995 deraadt

time_t typecast; from bernd@arresum.inka.de; netbsd pr#1724


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision