History log of /openbsd-current/usr.bin/quota/quota.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.39 26-Apr-2018 guenther

Use <fcntl.h> instead of <sys/file.h> for open() and friends.
Delete a bunch of unnecessary #includes and sort to match style(9)
while doing the above cleanup.

ok deraadt@ krw@


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

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

Feedback millert@ kettenis@


Revision tags: OPENBSD_5_9_BASE
# 1.37 09-Dec-2015 mmcc

Remove NULL-checks before free(). ok tb@


# 1.36 20-Aug-2015 deraadt

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.35 08-Feb-2015 deraadt

in getopt() blocks, stop incrementing flag variable which are supposed
to just be 0/1
ok miod florian


# 1.34 17-Jan-2015 deraadt

use NGROUPS_MAX instead of NGROUPS


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


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.32 26-Nov-2013 deraadt

unsigned char casts for ctype
ok krw


# 1.31 08-Nov-2013 jsing

Make quota(1) work with DUIDs.

ok krw@ millert@


Revision tags: 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 08-Apr-2010 william

Fix order of arithmetic operations so that large NFS file system quotas
display properly

same fix as in FreeBSD, NetBSD

ok deraadt@ tedu@ millert@ guenther@


Revision tags: OPENBSD_4_7_BASE
# 1.29 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.28 30-Dec-2007 sobrado

lowercase "usage:"; align synopses

ok jmc@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.27 05-May-2005 jmc

sort options + sync usage()


# 1.26 03-Apr-2005 otto

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


# 1.25 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_7_BASE
# 1.24 10-Oct-2004 mickey

make err msg more like the others


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.23 10-Jun-2003 deraadt

mostly ansi cleanup; pval ok


# 1.22 03-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.21 15-Mar-2003 deraadt

specifed -> specified


Revision tags: OPENBSD_3_2_BASE
# 1.20 14-May-2002 fgsch

some -Wall cleanup; closes pr/2649.
minor changes by me.


Revision tags: OPENBSD_3_1_BASE
# 1.19 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


# 1.18 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.


# 1.17 01-Dec-2001 deraadt

KNF


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.16 18-Oct-2000 pjanzen

Quiet warning with cast


# 1.15 18-Oct-2000 pjanzen

Changes from NetBSD: cleanups, use err/warn, reformat, and print large quotas
(>4G) correctly.


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

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


Revision tags: OPENBSD_2_6_BASE
# 1.13 06-Aug-1999 deraadt

uid_t and gid_t, and use %u


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.12 13-Jul-1998 millert

ftpd: sleep for an indeterminate amount for non-existant logins
to simulate a crypt, like login does.
Use SEEK_* not L_* and kill some 0L's used in lseek while we're there.


# 1.11 10-Jul-1998 deraadt

memset and friends


# 1.10 10-Jul-1998 deraadt

avoid buf oflows


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.9 17-Jan-1997 millert

r?index -> strr?chr


# 1.8 28-Oct-1996 millert

Be more paranoid about passing around user/group name from argv.


Revision tags: OPENBSD_2_0_BASE
# 1.7 07-Aug-1996 etheisen

strncpy() dyslexia on last commit.


# 1.6 06-Aug-1996 deraadt

buf oflow


# 1.5 26-Jun-1996 deraadt

rcsid


# 1.4 25-Apr-1996 deraadt

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


# 1.3 21-Apr-1996 deraadt

sync to netbsd 960418


# 1.2 25-Nov-1995 deraadt

make quotas work on ffs; from andrew@wipux2.wifo.uni-mannheim.de; netbsd pr #1790


# 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.38 16-Mar-2016 krw

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

Feedback millert@ kettenis@


Revision tags: OPENBSD_5_9_BASE
# 1.37 09-Dec-2015 mmcc

Remove NULL-checks before free(). ok tb@


# 1.36 20-Aug-2015 deraadt

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.35 08-Feb-2015 deraadt

in getopt() blocks, stop incrementing flag variable which are supposed
to just be 0/1
ok miod florian


# 1.34 17-Jan-2015 deraadt

use NGROUPS_MAX instead of NGROUPS


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


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.32 26-Nov-2013 deraadt

unsigned char casts for ctype
ok krw


# 1.31 08-Nov-2013 jsing

Make quota(1) work with DUIDs.

ok krw@ millert@


Revision tags: 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 08-Apr-2010 william

Fix order of arithmetic operations so that large NFS file system quotas
display properly

same fix as in FreeBSD, NetBSD

ok deraadt@ tedu@ millert@ guenther@


Revision tags: OPENBSD_4_7_BASE
# 1.29 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.28 30-Dec-2007 sobrado

lowercase "usage:"; align synopses

ok jmc@


Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
# 1.27 05-May-2005 jmc

sort options + sync usage()


# 1.26 03-Apr-2005 otto

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


# 1.25 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_7_BASE
# 1.24 10-Oct-2004 mickey

make err msg more like the others


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE
# 1.23 10-Jun-2003 deraadt

mostly ansi cleanup; pval ok


# 1.22 03-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.21 15-Mar-2003 deraadt

specifed -> specified


Revision tags: OPENBSD_3_2_BASE
# 1.20 14-May-2002 fgsch

some -Wall cleanup; closes pr/2649.
minor changes by me.


Revision tags: OPENBSD_3_1_BASE
# 1.19 17-Feb-2002 millert

Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)


# 1.18 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.


# 1.17 01-Dec-2001 deraadt

KNF


Revision tags: OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
# 1.16 18-Oct-2000 pjanzen

Quiet warning with cast


# 1.15 18-Oct-2000 pjanzen

Changes from NetBSD: cleanups, use err/warn, reformat, and print large quotas
(>4G) correctly.


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

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


Revision tags: OPENBSD_2_6_BASE
# 1.13 06-Aug-1999 deraadt

uid_t and gid_t, and use %u


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.12 13-Jul-1998 millert

ftpd: sleep for an indeterminate amount for non-existant logins
to simulate a crypt, like login does.
Use SEEK_* not L_* and kill some 0L's used in lseek while we're there.


# 1.11 10-Jul-1998 deraadt

memset and friends


# 1.10 10-Jul-1998 deraadt

avoid buf oflows


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE OPENBSD_2_3_BASE
# 1.9 17-Jan-1997 millert

r?index -> strr?chr


# 1.8 28-Oct-1996 millert

Be more paranoid about passing around user/group name from argv.


Revision tags: OPENBSD_2_0_BASE
# 1.7 07-Aug-1996 etheisen

strncpy() dyslexia on last commit.


# 1.6 06-Aug-1996 deraadt

buf oflow


# 1.5 26-Jun-1996 deraadt

rcsid


# 1.4 25-Apr-1996 deraadt

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


# 1.3 21-Apr-1996 deraadt

sync to netbsd 960418


# 1.2 25-Nov-1995 deraadt

make quotas work on ffs; from andrew@wipux2.wifo.uni-mannheim.de; netbsd pr #1790


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision