OpenBSD CVS

CVS log for src/usr.bin/quota/quota.c


[BACK] Up to [local] / src / usr.bin / quota

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.39 / (download) - annotate - [select for diffs], Thu Apr 26 12:42:51 2018 UTC (6 years ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, HEAD
Changes since 1.38: +2 -3 lines
Diff to previous 1.38 (colored)

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 1.38 / (download) - annotate - [select for diffs], Wed Mar 16 15:41:11 2016 UTC (8 years, 2 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.37: +10 -10 lines
Diff to previous 1.37 (colored)

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

Feedback millert@ kettenis@

Revision 1.37 / (download) - annotate - [select for diffs], Wed Dec 9 19:39:10 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.36: +2 -3 lines
Diff to previous 1.36 (colored)

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

Revision 1.36 / (download) - annotate - [select for diffs], Thu Aug 20 22:32:41 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.35: +2 -3 lines
Diff to previous 1.35 (colored)

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

Revision 1.35 / (download) - annotate - [select for diffs], Sun Feb 8 23:40:34 2015 UTC (9 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.34: +6 -6 lines
Diff to previous 1.34 (colored)

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

Revision 1.34 / (download) - annotate - [select for diffs], Sat Jan 17 17:22:07 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.33: +8 -8 lines
Diff to previous 1.33 (colored)

use NGROUPS_MAX instead of NGROUPS

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:10 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

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 1.32 / (download) - annotate - [select for diffs], Tue Nov 26 13:19:07 2013 UTC (10 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

unsigned char casts for ctype
ok krw

Revision 1.31 / (download) - annotate - [select for diffs], Fri Nov 8 15:21:20 2013 UTC (10 years, 6 months ago) by jsing
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Make quota(1) work with DUIDs.

ok krw@ millert@

Revision 1.30 / (download) - annotate - [select for diffs], Thu Apr 8 02:43:57 2010 UTC (14 years, 1 month ago) by william
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored)

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 1.29 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:41 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.28: +1 -13 lines
Diff to previous 1.28 (colored)

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 1.28 / (download) - annotate - [select for diffs], Sun Dec 30 13:32:19 2007 UTC (16 years, 4 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.27: +5 -6 lines
Diff to previous 1.27 (colored)

lowercase "usage:"; align synopses

ok jmc@

Revision 1.27 / (download) - annotate - [select for diffs], Thu May 5 19:17:11 2005 UTC (19 years ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored)

sort options + sync usage()

Revision 1.26 / (download) - annotate - [select for diffs], Sun Apr 3 19:02:30 2005 UTC (19 years, 1 month ago) by otto
Branch: MAIN
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

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

Revision 1.25 / (download) - annotate - [select for diffs], Fri Apr 1 04:31:09 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

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

Revision 1.24 / (download) - annotate - [select for diffs], Sun Oct 10 03:31:20 2004 UTC (19 years, 7 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

make err msg more like the others

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jun 10 22:20:49 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.22: +20 -52 lines
Diff to previous 1.22 (colored)

mostly ansi cleanup; pval ok

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:14 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.21: +3 -7 lines
Diff to previous 1.21 (colored)

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

Revision 1.21 / (download) - annotate - [select for diffs], Sat Mar 15 19:16:10 2003 UTC (21 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

specifed -> specified

Revision 1.20 / (download) - annotate - [select for diffs], Tue May 14 12:24:10 2002 UTC (22 years ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.19: +12 -7 lines
Diff to previous 1.19 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Sun Feb 17 19:42:31 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.18: +7 -8 lines
Diff to previous 1.18 (colored)

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

Revision 1.18 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:51 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.17: +14 -14 lines
Diff to previous 1.17 (colored)

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 1.17 / (download) - annotate - [select for diffs], Sat Dec 1 19:00:34 2001 UTC (22 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +28 -29 lines
Diff to previous 1.16 (colored)

KNF

Revision 1.16 / (download) - annotate - [select for diffs], Wed Oct 18 23:05:16 2000 UTC (23 years, 7 months ago) by pjanzen
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Quiet warning with cast

Revision 1.15 / (download) - annotate - [select for diffs], Wed Oct 18 22:15:29 2000 UTC (23 years, 7 months ago) by pjanzen
Branch: MAIN
Changes since 1.14: +130 -101 lines
Diff to previous 1.14 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 1 03:23:36 2000 UTC (24 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

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

Revision 1.13 / (download) - annotate - [select for diffs], Fri Aug 6 20:41:07 1999 UTC (24 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.12: +10 -10 lines
Diff to previous 1.12 (colored)

uid_t and gid_t, and use %u

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jul 13 02:11:41 1998 UTC (25 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

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.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jul 10 08:50:35 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +8 -6 lines
Diff to previous 1.10 (colored)

memset and friends

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jul 10 08:17:39 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +7 -6 lines
Diff to previous 1.9 (colored)

avoid buf oflows

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jan 17 07:13:08 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

r?index -> strr?chr

Revision 1.8 / (download) - annotate - [select for diffs], Mon Oct 28 04:08:21 1996 UTC (27 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.7: +6 -6 lines
Diff to previous 1.7 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Wed Aug 7 14:08:52 1996 UTC (27 years, 9 months ago) by etheisen
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

strncpy() dyslexia on last commit.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Aug 6 18:38:48 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +9 -6 lines
Diff to previous 1.5 (colored)

buf oflow

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jun 26 05:38:01 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)

rcsid

Revision 1.4 / (download) - annotate - [select for diffs], Thu Apr 25 11:04:06 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

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

Revision 1.3 / (download) - annotate - [select for diffs], Sun Apr 21 23:43:38 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

sync to netbsd 960418

Revision 1.2 / (download) - annotate - [select for diffs], Sat Nov 25 16:46:24 1995 UTC (28 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +4 -3 lines
Diff to previous 1.1 (colored)

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

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:58 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:58 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.