summaryrefslogtreecommitdiff
path: root/usr.sbin/edquota
Commit message (Collapse)AuthorAgeFilesLines
* edquota(8): Cleanup to make it WARNS=6 clean.Xin LI2020-08-172-6/+3
| | | | | | | | Tested with: make tinderbox MFC after: 2 weeks Notes: svn path=/head/; revision=364293
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-202-2/+6
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Renumber copyright clause 4Warner Losh2017-02-283-3/+3
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Use strlcpy() instead of strncpy() to ensure that qup->fsname is NULDon Lewis2016-05-131-1/+1
| | | | | | | | | | | | terminated. Don't bother checking for truncation since the subsequent quota_read() should detect that and fail. Reported by: Coverity CID: 1009980 MFC after: 1 week Notes: svn path=/head/; revision=299579
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Merge headSimon J. Gerraty2014-04-281-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync with HEAD.David E. O'Brien2013-02-081-2/+0
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ \ Sync from headSimon J. Gerraty2012-11-041-2/+4
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | | | edquota: Don't pass fd for temporary file to editor.Jilles Tjoelker2013-10-271-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | The editor opens the temporary file by name. Notes: svn path=/head/; revision=257226
* | | Remove unneeded includes.Eitan Adler2012-11-201-2/+0
| |/ |/| | | | | | | | | | | | | | | | | Tested with "make universe"; there are no conditional features. Approved by: cperciva MFC after: 3 daus Notes: svn path=/head/; revision=243321
* | Check the return error of set[e][ug]id. While this can never fail in theEitan Adler2012-10-221-2/+4
|/ | | | | | | | | | | | | current version of FreeBSD, this isn't guarenteed by the API. Custom security modules, or future implementations of the setuid and setgid may fail. Submitted by: Erik Cederstrand Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=241848
* Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-291-1/+1
| | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
* Spelling fixes for usr.sbin/Ulrich Spörlein2011-12-301-1/+1
| | | | Notes: svn path=/head/; revision=228990
* type / format fixupDag-Erling Smørgrav2009-09-271-32/+38
| | | | Notes: svn path=/projects/quota64/; revision=197538
* Update the quotafile library to manage both active quotas via theKirk McKusick2009-02-141-89/+42
| | | | | | | | | | | quotactl(2) interface and inactive quotas by accessing the quota files directly. Update the edquota program to use this new interface as proof of concept. Notes: svn path=/projects/quota64/; revision=188604
* Move hasquota() function to libutil.Kirk McKusick2009-02-131-74/+27
| | | | Notes: svn path=/projects/quota64/; revision=188568
* More updates to edquota based on feedback from Dag-Erling Smorgrav.Kirk McKusick2009-02-101-43/+126
| | | | Notes: svn path=/projects/quota64/; revision=188432
* Updates to edquota based on feedback from Dag-Erling Smorgrav.Kirk McKusick2009-02-053-41/+67
| | | | Notes: svn path=/projects/quota64/; revision=188145
* Finish conversion of edquota to work with 64-bit quotas.Kirk McKusick2009-02-043-58/+170
| | | | | | | | | | Add -h option to request "humanized" values such as 1M, 1G, 1T, etc. Discussed with: Dag-Erling Smorgrav Sponsored by: Rsync.net Notes: svn path=/projects/quota64/; revision=188108
* WIPDag-Erling Smørgrav2009-01-302-72/+30
| | | | Notes: svn path=/projects/quota64/; revision=187914
* Drag this code kicking and screaming into the twenty-first century.Dag-Erling Smørgrav2008-07-021-59/+30
| | | | Notes: svn path=/head/; revision=180187
* Document that quotas must be turned off on a file system andMike Pritchard2007-02-041-0/+2
| | | | | | | | then turned back on in order for grace time changes to take effect. Notes: svn path=/head/; revision=166496
* If two files systems, /a and /b are marked as having quotas enabledMike Pritchard2007-02-041-8/+23
| | | | | | | | | | | | | | | | in fstab and they are normally mounted as /a/b, if /b is not mounted, the various quota utilities will incorrectly operate with the quotas on /a (silently) when operations are attemted on /b. Sync up all the hasquota() routines between all the different quota utilities and change it to detect if the file system we are attempting to perform quota operations on is not currently mounted and warn the user accordingly. PR: bin/38918 Notes: svn path=/head/; revision=166485
* If quotas are not currently enabled for a file system, edquota -pMike Pritchard2007-02-041-8/+63
| | | | | | | | | | | | | | | will operate directly on the quota file. It will incorrectly write the prototype user's usage information for each new quota it sets. Fixed to read in the current quota information and update the file correctly. If quotas are enabled the kernel handles this case fine. PR: bin/15410 Notes: svn path=/head/; revision=166480
* initialize unitialized variables (WARNS=6)Philippe Charnier2006-09-141-2/+6
| | | | Notes: svn path=/head/; revision=162295
* Sort sections.Ruslan Ermilov2005-01-181-2/+2
| | | | Notes: svn path=/head/; revision=140442
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareWarner Losh2004-08-073-12/+1
| | | | | | | (with permission of addtional copyright holders where appropriate) Notes: svn path=/head/; revision=133249
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+3
| | | | Notes: svn path=/head/; revision=131500
* o Fix typo: s/bslim/bhlim/.Maxim Konovalov2004-05-251-1/+1
| | | | | | | | | PR: docs/67170 Submitted by: Anatoly Zherdev MFC after: 3 days Notes: svn path=/head/; revision=129706
* Have edquota honour MAXLOGNAME rather than hardcoding the maximumCeri Davies2004-02-241-1/+1
| | | | | | | | | | | | username length to 29 characters. PR: misc/62944 Submitted by: David Hill <david@wmol.com> Approved by: ru MFC after: 1 week Notes: svn path=/head/; revision=126201
* Userland signed char fixes for PPC build. Problems were using a charPeter Grehan2004-01-221-2/+2
| | | | | | | | | | | | return for getopt() and comparing to -1, ditto with fgetc() and EOF, and using the kg_nice value from <sys/user.h> Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: obrien, bde (a while back) Tested lightly on: ppc, i386, make universe Notes: svn path=/head/; revision=124830
* mdoc(7): Properly mark C headers.Ruslan Ermilov2003-09-101-1/+1
| | | | Notes: svn path=/head/; revision=119964
* Minor grammar, punctuation, and wording fixesYaroslav Tykhiy2003-07-291-8/+8
| | | | | | | for the paragraph on the -e option. Notes: svn path=/head/; revision=118159
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.David E. O'Brien2003-05-031-4/+4
| | | | Notes: svn path=/head/; revision=114601
* style.Makefile(5)David E. O'Brien2003-04-041-1/+2
| | | | Notes: svn path=/head/; revision=113091
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-12/+12
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* mdoc(7) police: markup fixes.Ruslan Ermilov2002-11-271-9/+16
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107312
* Allow edquota(8) to be used for setting up quotas non-interactively (add aMaxim Sobolev2002-09-072-23/+149
| | | | | | | | | | new -e option for that). Feature requested by: Alex V. Belinsky <fozzy@kievweb.net.ua> MFC after: 1 month Notes: svn path=/head/; revision=103071
* Use "kbytes" instead of "blocks" in messages as this is reallyJens Schweikhardt2002-08-241-2/+2
| | | | | | | | | | | what is calculated. PR: 41936 Submitted by: Lukas Ertl <le@univie.ac.at> MFC after: 1 week Notes: svn path=/head/; revision=102362
* Improve the code for detecting UID ranges so that usernames suchIan Dowse2002-08-091-3/+3
| | | | | | | | | | as "2-xhibit" are not considered as a range. Fix a problem where the code would forget to increment argv. PR: misc/15658 Notes: svn path=/head/; revision=101546
* The .Nm utilityPhilippe Charnier2002-07-141-2/+3
| | | | Notes: svn path=/head/; revision=99968