summaryrefslogtreecommitdiff
path: root/usr.sbin/quot/quot.c
AgeCommit message (Collapse)Author
2018-09-18Use user_from_uid(3) instead of getpwuid(3) and keep the passwdTodd C. Miller
file open. OK tb@
2018-07-26add pledge(2) to quot(8):Ricardo Mestre
- rpath to traverse the filesystem(s) - getpw to figure out who owns what OK tb@ deraadt@
2017-09-07unifdef some ancient COMPAT code that's not used. 500 byte blocks!Ted Unangst
noticed by miod
2017-08-31assorted warning fixes; ok millert@Otto Moerbeek
2015-11-12use symbolics for flags to openTheo de Raadt
from Ricardo Mestre
2015-08-20stdlib.h is in scope; do not cast malloc/calloc/realloc*Theo de Raadt
ok millert krw
2015-01-20Adjust <sys/param.h> comments regarding use of use of MAXFRAG, orTheo de Raadt
delete <sys/param.h> if now possible ok guenther
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2013-11-12ensure there are prototypesTheo de Raadt
2013-08-22Correct format string mismatches turned up by -Wformat=2Philip Guenther
suggestions and ok millert@
2013-06-11final removal of daddr64_t. daddr_t has been 64 bit for a long enoughTheo de Raadt
test period; i think 3 years ago the last bugs fell out. ok otto beck others
2013-04-23handle large ino_tTheo de Raadt
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2008-03-17sync the synopsis and usage; "usage:" is lowercaseIgor Sobrado
ok jmc@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-07-04Add ffs2 support; from FreeBSD. OK deraadt@Todd C. Miller
2007-06-25daddr64_t changes to match other parts of tree; ok ottoTheo de Raadt
2006-04-02use SEEK_* for lseek()Theo de Raadt
2003-08-25rename struct dinode to ufs1_dinode. clears the namespace and makesTed Unangst
way for some future work. no function changes yet. help testing otto@ and markus@
2003-06-26strict proto cleanupsTheo de Raadt
2003-06-25proto cleanupTheo de Raadt
2002-05-30minor KNFTheo de Raadt
2000-11-21Don't include mfs partitions in 'quot -a' since there is no device fileTodd C. Miller
to open.
2000-06-07Strip trailing slashes from dir names and give a reasonable error ifTodd C. Miller
what is specified on the command line is not a mount point or device.
2000-06-06Make quot work when passed a filesystem mount point like the documentationTodd C. Miller
leads one to believe. Also some -Wall and other cleanup.
1999-09-22do not know how to fix, doc it at leastTheo de Raadt
1999-08-06uid_t and gid_t, and use %uTheo de Raadt
1998-07-08When multiplying bumber of blocks by DEV_BSIZE, cast nblocks to off_t so we ↵Todd C. Miller
don't wrap.
1996-06-10random cleanupTheo de Raadt
1996-04-25permit quotas to work on mfs; problem reported by rdante@pnet.netTheo de Raadt
1995-11-06Complete change from ufs -> ffs; (From Tatoku Ogaito; PR #1679)Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt