OpenBSD CVS

CVS log for src/usr.sbin/quot/quot.c


[BACK] Up to [local] / src / usr.sbin / quot

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.33 / (download) - annotate - [select for diffs], Tue Apr 23 13:34:51 2024 UTC (5 weeks, 4 days ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored)

correct indentation; no functional change
ok tb@

Revision 1.32 / (download) - annotate - [select for diffs], Tue Sep 18 03:09:55 2018 UTC (5 years, 8 months ago) by millert
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
Changes since 1.31: +6 -4 lines
Diff to previous 1.31 (colored)

Use user_from_uid(3) instead of getpwuid(3) and keep the passwd
file open.  OK tb@

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jul 26 13:37:40 2018 UTC (5 years, 10 months ago) by mestre
Branch: MAIN
Changes since 1.30: +5 -1 lines
Diff to previous 1.30 (colored)

add pledge(2) to quot(8):
- rpath to traverse the filesystem(s)
- getpw to figure out who owns what

OK tb@ deraadt@

Revision 1.30 / (download) - annotate - [select for diffs], Thu Sep 7 03:24:09 2017 UTC (6 years, 8 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.29: +1 -68 lines
Diff to previous 1.29 (colored)

unifdef some ancient COMPAT code that's not used. 500 byte blocks!
noticed by miod

Revision 1.29 / (download) - annotate - [select for diffs], Thu Aug 31 12:03:02 2017 UTC (6 years, 9 months ago) by otto
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

assorted warning fixes; ok millert@

Revision 1.28 / (download) - annotate - [select for diffs], Thu Nov 12 22:33:07 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

use symbolics for flags to open
from Ricardo Mestre

Revision 1.27 / (download) - annotate - [select for diffs], Thu Aug 20 22:39:29 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +5 -6 lines
Diff to previous 1.26 (colored)

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

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jan 20 18:22:21 2015 UTC (9 years, 4 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.25: +2 -2 lines
Diff to previous 1.25 (colored)

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

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:19 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (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.24 / (download) - annotate - [select for diffs], Tue Nov 12 22:27:12 2013 UTC (10 years, 6 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.23: +2 -1 lines
Diff to previous 1.23 (colored)

ensure there are prototypes

Revision 1.23 / (download) - annotate - [select for diffs], Thu Aug 22 04:43:41 2013 UTC (10 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.22: +7 -5 lines
Diff to previous 1.22 (colored)

Correct format string mismatches turned up by -Wformat=2

suggestions and ok millert@

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jun 11 16:42:19 2013 UTC (10 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.21: +9 -9 lines
Diff to previous 1.21 (colored)

final removal of daddr64_t.  daddr_t has been 64 bit for a long enough
test period; i think 3 years ago the last bugs fell out.
ok otto beck others

Revision 1.21 / (download) - annotate - [select for diffs], Tue Apr 23 18:18:59 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.20: +3 -2 lines
Diff to previous 1.20 (colored)

handle large ino_t

Revision 1.20 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:54 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: 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, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.19: +1 -5 lines
Diff to previous 1.19 (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.19 / (download) - annotate - [select for diffs], Mon Mar 17 20:30:17 2008 UTC (16 years, 2 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
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

sync the synopsis and usage; "usage:" is lowercase

ok jmc@

Revision 1.18 / (download) - annotate - [select for diffs], Sun Sep 2 15:19:40 2007 UTC (16 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jul 4 17:14:45 2007 UTC (16 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.16: +109 -53 lines
Diff to previous 1.16 (colored)

Add ffs2 support; from FreeBSD.  OK deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jun 25 20:22:00 2007 UTC (16 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +18 -18 lines
Diff to previous 1.15 (colored)

daddr64_t changes to match other parts of tree; ok otto

Revision 1.15 / (download) - annotate - [select for diffs], Sun Apr 2 00:50:42 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

use SEEK_* for lseek()

Revision 1.14 / (download) - annotate - [select for diffs], Mon Aug 25 23:28:16 2003 UTC (20 years, 9 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.13: +11 -11 lines
Diff to previous 1.13 (colored)

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@

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jun 26 19:47:09 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

strict proto cleanups

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 25 21:18:24 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +24 -45 lines
Diff to previous 1.11 (colored)

proto cleanup

Revision 1.11 / (download) - annotate - [select for diffs], Thu May 30 19:09:05 2002 UTC (22 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.10: +22 -22 lines
Diff to previous 1.10 (colored)

minor KNF

Revision 1.10 / (download) - annotate - [select for diffs], Tue Nov 21 04:23:09 2000 UTC (23 years, 6 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.9: +4 -5 lines
Diff to previous 1.9 (colored)

Don't include mfs partitions in 'quot -a' since there is no device file
to open.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Jun 7 03:55:03 2000 UTC (24 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.8: +21 -11 lines
Diff to previous 1.8 (colored)

Strip trailing slashes from dir names and give a reasonable error if
what is specified on the command line is not a mount point or device.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jun 6 18:29:46 2000 UTC (24 years ago) by millert
Branch: MAIN
Changes since 1.7: +90 -91 lines
Diff to previous 1.7 (colored)

Make quot work when passed a filesystem mount point like the documentation
leads one to believe.  Also some -Wall and other cleanup.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Sep 22 05:04:34 1999 UTC (24 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.6: +6 -2 lines
Diff to previous 1.6 (colored)

do not know how to fix, doc it at least

Revision 1.6 / (download) - annotate - [select for diffs], Fri Aug 6 20:41:08 1999 UTC (24 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

uid_t and gid_t, and use %u

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jul 8 19:43:23 1998 UTC (25 years, 11 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.4: +3 -3 lines
Diff to previous 1.4 (colored)

When multiplying bumber of blocks by DEV_BSIZE, cast nblocks to off_t so we don't wrap.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 10 08:32:15 1996 UTC (27 years, 11 months ago) by deraadt
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, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.3: +138 -77 lines
Diff to previous 1.3 (colored)

random cleanup

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

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

Revision 1.2 / (download) - annotate - [select for diffs], Mon Nov 6 21:40:54 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

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

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:48:02 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:48:02 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.