History log of /openbsd-current/usr.sbin/repquota/repquota.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.36 15-Nov-2021 millert

No need to declare optind, optarg or opterr; unistd.h does this for us.
From Jan Stary. OK deraadt@


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.35 16-Mar-2016 krw

More "(<blah> *)0" -> NULL, avoiding any stdarg functions.

Feedback millert@ kettenis@


Revision tags: OPENBSD_5_9_BASE
# 1.34 26-Oct-2015 zhuk

Put repquota in line with other utilities: you either wants list everyting,
effectively using -a, or you specify filesystems one-by-one. Doing both
resulted in a funny error messages, so just don't allow that silly behaviour.

okay millert@


# 1.33 20-Aug-2015 deraadt

stdlib.h is in scope; do not cast malloc/calloc/realloc*
ok millert krw


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.32 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_5_BASE OPENBSD_5_6_BASE
# 1.31 12-Nov-2013 deraadt

ensure there are prototypes


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 OPENBSD_5_4_BASE
# 1.30 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.29 07-Sep-2007 mbalmer

Fix use of arguments in usage().

ok winiger


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.28 18-Feb-2007 jmc

tidy up synopsis and usage(); partly from Igor Sobrado


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.27 03-Apr-2005 otto

Report quotas > 10GB in a readable way. Diff based on PR 2836.
ok deraadt@


# 1.26 01-Apr-2005 deraadt

these commands said "blocks" when they meant "KBytes" (they even calculated
it so). pointed out by janc@cyberspace.org, pr 3956


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.25 26-Jun-2003 deraadt

strict proto cleanups


# 1.24 25-Jun-2003 deraadt

ansi


# 1.23 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 1.22 30-Apr-2003 jason

pull in stdlib.h to avoid implicit decl of calloc(); ok henning


# 1.21 30-Mar-2003 deraadt

boring nothing commit from cloder


# 1.20 30-Mar-2003 deraadt

snprintf; millert ok


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.19 06-Sep-2002 deraadt

cope with INITQFNAMES without a ;


# 1.18 06-Sep-2002 deraadt

no ; after INITQFNAMES


# 1.17 29-May-2002 deraadt

more sprintf


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

kill more registers.

millert@ ok


# 1.15 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_2_9_BASE OPENBSD_3_0_BASE
# 1.14 15-Jan-2001 angelos

Revert previous patch.


# 1.13 14-Jan-2001 angelos

Handle quotas over 4G, PR 1534 (bob@prophecy.lu)


# 1.12 21-Dec-2000 pjanzen

Print quotas > 4G correctly; be a little more paranoid with a few buffers.


Revision tags: OPENBSD_2_8_BASE
# 1.11 11-Sep-2000 millert

Fix pasto: repquota does not report user quotas when a volume argument is given
and there are no group quotas set. canacar@eee.metu.edu.tr


Revision tags: OPENBSD_2_7_BASE
# 1.10 01-Feb-2000 deraadt

no need to extern int errno if errno.h is included


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
# 1.9 17-Jan-1997 millert

r?index -> strr?chr


# 1.8 12-Dec-1996 deraadt

fix a typical use; -Wall


Revision tags: OPENBSD_2_0_BASE
# 1.7 04-May-1996 deraadt

allow operation even if fstab does not label filesystem as supporting
quotas; pointed out by jonny@gaia.coppe.ufrj.br


# 1.6 25-Apr-1996 deraadt

permit quotas to work on mfs; problem reported by rdante@pnet.net


# 1.5 21-Apr-1996 deraadt

sync to netbsd 960418


# 1.4 07-Jan-1996 deraadt

accept either ffs or ufs for filesystem name


# 1.3 06-Nov-1995 deraadt

Complete change from ufs -> ffs; (From Tatoku Ogaito; PR #1679)


# 1.2 24-Oct-1995 deraadt

ufs -> ffs


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.35 16-Mar-2016 krw

More "(<blah> *)0" -> NULL, avoiding any stdarg functions.

Feedback millert@ kettenis@


Revision tags: OPENBSD_5_9_BASE
# 1.34 26-Oct-2015 zhuk

Put repquota in line with other utilities: you either wants list everyting,
effectively using -a, or you specify filesystems one-by-one. Doing both
resulted in a funny error messages, so just don't allow that silly behaviour.

okay millert@


# 1.33 20-Aug-2015 deraadt

stdlib.h is in scope; do not cast malloc/calloc/realloc*
ok millert krw


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.32 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_5_BASE OPENBSD_5_6_BASE
# 1.31 12-Nov-2013 deraadt

ensure there are prototypes


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 OPENBSD_5_4_BASE
# 1.30 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.29 07-Sep-2007 mbalmer

Fix use of arguments in usage().

ok winiger


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.28 18-Feb-2007 jmc

tidy up synopsis and usage(); partly from Igor Sobrado


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.27 03-Apr-2005 otto

Report quotas > 10GB in a readable way. Diff based on PR 2836.
ok deraadt@


# 1.26 01-Apr-2005 deraadt

these commands said "blocks" when they meant "KBytes" (they even calculated
it so). pointed out by janc@cyberspace.org, pr 3956


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.25 26-Jun-2003 deraadt

strict proto cleanups


# 1.24 25-Jun-2003 deraadt

ansi


# 1.23 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 1.22 30-Apr-2003 jason

pull in stdlib.h to avoid implicit decl of calloc(); ok henning


# 1.21 30-Mar-2003 deraadt

boring nothing commit from cloder


# 1.20 30-Mar-2003 deraadt

snprintf; millert ok


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.19 06-Sep-2002 deraadt

cope with INITQFNAMES without a ;


# 1.18 06-Sep-2002 deraadt

no ; after INITQFNAMES


# 1.17 29-May-2002 deraadt

more sprintf


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

kill more registers.

millert@ ok


# 1.15 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_2_9_BASE OPENBSD_3_0_BASE
# 1.14 15-Jan-2001 angelos

Revert previous patch.


# 1.13 14-Jan-2001 angelos

Handle quotas over 4G, PR 1534 (bob@prophecy.lu)


# 1.12 21-Dec-2000 pjanzen

Print quotas > 4G correctly; be a little more paranoid with a few buffers.


Revision tags: OPENBSD_2_8_BASE
# 1.11 11-Sep-2000 millert

Fix pasto: repquota does not report user quotas when a volume argument is given
and there are no group quotas set. canacar@eee.metu.edu.tr


Revision tags: OPENBSD_2_7_BASE
# 1.10 01-Feb-2000 deraadt

no need to extern int errno if errno.h is included


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
# 1.9 17-Jan-1997 millert

r?index -> strr?chr


# 1.8 12-Dec-1996 deraadt

fix a typical use; -Wall


Revision tags: OPENBSD_2_0_BASE
# 1.7 04-May-1996 deraadt

allow operation even if fstab does not label filesystem as supporting
quotas; pointed out by jonny@gaia.coppe.ufrj.br


# 1.6 25-Apr-1996 deraadt

permit quotas to work on mfs; problem reported by rdante@pnet.net


# 1.5 21-Apr-1996 deraadt

sync to netbsd 960418


# 1.4 07-Jan-1996 deraadt

accept either ffs or ufs for filesystem name


# 1.3 06-Nov-1995 deraadt

Complete change from ufs -> ffs; (From Tatoku Ogaito; PR #1679)


# 1.2 24-Oct-1995 deraadt

ufs -> ffs


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision