bapt
a191ba5195
Convert usr.sbin to LIBADD
...
Reduce overlinking
2014-11-25 16:57:27 +00:00
jilles
9117c60cf7
edquota: Don't pass fd for temporary file to editor.
...
The editor opens the temporary file by name.
2013-10-27 21:06:17 +00:00
eadler
d5971a0e55
Remove unneeded includes.
...
Tested with "make universe"; there are no conditional features.
Approved by: cperciva
MFC after: 3 daus
2012-11-20 02:12:01 +00:00
eadler
a603c87b02
Check the return error of set[e][ug]id. While this can never fail in the
...
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
2012-10-22 03:07:05 +00:00
eadler
1ef5fe44d3
Remove trailing whitespace per mdoc lint warning
...
Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days
2012-03-29 05:02:12 +00:00
uqs
415a3a9b96
Spelling fixes for usr.sbin/
2011-12-30 10:58:14 +00:00
des
0541f56541
type / format fixup
2009-09-27 17:33:26 +00:00
mckusick
46197420cc
Update the quotafile library to manage both active quotas via the
...
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.
2009-02-14 08:08:08 +00:00
mckusick
44bede95eb
Move hasquota() function to libutil.
2009-02-13 06:12:15 +00:00
mckusick
acf6ce0bcb
More updates to edquota based on feedback from Dag-Erling Smorgrav.
2009-02-10 08:09:03 +00:00
mckusick
be3f4e53a7
Updates to edquota based on feedback from Dag-Erling Smorgrav.
2009-02-05 14:06:43 +00:00
mckusick
21c39c52ce
Finish conversion of edquota to work with 64-bit quotas.
...
Add -h option to request "humanized" values such as 1M, 1G, 1T, etc.
Discussed with: Dag-Erling Smorgrav
Sponsored by: Rsync.net
2009-02-04 00:21:36 +00:00
des
604db9f61a
WIP
2009-01-30 13:54:03 +00:00
des
34dee8955f
Drag this code kicking and screaming into the twenty-first century.
2008-07-02 15:51:59 +00:00
mpp
4e9c971afc
Document that quotas must be turned off on a file system and
...
then turned back on in order for grace time changes to take
effect.
2007-02-04 14:26:01 +00:00
mpp
2088a69616
If two files systems, /a and /b are marked as having quotas enabled
...
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
2007-02-04 06:33:15 +00:00
mpp
b1367bfe2c
If quotas are not currently enabled for a file system, edquota -p
...
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
2007-02-04 01:41:32 +00:00
charnier
5543d83186
initialize unitialized variables (WARNS=6)
2006-09-14 04:45:44 +00:00
ru
c05985f13f
Sort sections.
2005-01-18 20:02:45 +00:00
imp
9fbed704d5
Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software
...
(with permission of addtional copyright holders where appropriate)
2004-08-07 04:28:56 +00:00
ru
6294018a20
Mechanically kill hard sentence breaks.
2004-07-02 23:13:00 +00:00
maxim
d8ded340c6
o Fix typo: s/bslim/bhlim/.
...
PR: docs/67170
Submitted by: Anatoly Zherdev
MFC after: 3 days
2004-05-25 10:43:46 +00:00
ceri
97f7ec13f1
Have edquota honour MAXLOGNAME rather than hardcoding the maximum
...
username length to 29 characters.
PR: misc/62944
Submitted by: David Hill <david@wmol.com>
Approved by: ru
MFC after: 1 week
2004-02-24 20:58:16 +00:00
grehan
2dafdd4f00
Userland signed char fixes for PPC build. Problems were using a char
...
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
2004-01-22 07:23:36 +00:00
ru
1edcd1b018
mdoc(7): Properly mark C headers.
2003-09-10 19:24:35 +00:00
yar
0b9b671342
Minor grammar, punctuation, and wording fixes
...
for the paragraph on the -e option.
2003-07-29 13:25:56 +00:00
obrien
7293a24a2b
Use __FBSDID over rcsid[]. Protect copyright[] where needed.
2003-05-03 21:06:42 +00:00
obrien
a920d12f89
style.Makefile(5)
2003-04-04 17:49:21 +00:00
ru
041d1287e8
Uniformly refer to a file system as "file system".
...
Approved by: re
2002-12-12 17:26:04 +00:00
ru
fef14a0ffe
mdoc(7) police: markup fixes.
...
Approved by: re
2002-11-27 15:31:08 +00:00
sobomax
04cbb04f2e
Allow edquota(8) to be used for setting up quotas non-interactively (add a
...
new -e option for that).
Feature requested by: Alex V. Belinsky <fozzy@kievweb.net.ua>
MFC after: 1 month
2002-09-07 12:26:07 +00:00
schweikh
21677e31d6
Use "kbytes" instead of "blocks" in messages as this is really
...
what is calculated.
PR: 41936
Submitted by: Lukas Ertl <le@univie.ac.at>
MFC after: 1 week
2002-08-24 11:03:48 +00:00
iedowse
99ddd54c1f
Improve the code for detecting UID ranges so that usernames such
...
as "2-xhibit" are not considered as a range. Fix a problem where
the code would forget to increment argv.
PR: misc/15658
2002-08-09 01:21:03 +00:00
charnier
d2168fe021
The .Nm utility
2002-07-14 14:47:15 +00:00
alfred
cef3a16df0
WARNS=4
2002-07-11 21:18:55 +00:00
alfred
c40ae61c8c
de-__P()
2002-07-11 18:31:16 +00:00
mikeh
e408e50776
Reorder WARNS line for style.
...
Pointed out by: bde
2001-12-10 21:13:36 +00:00
mikeh
b147d3868e
WARNS=2 cleanup.
...
Submitted by: Maxime Henrion <mux@qualys.com>
MFC after: 2 weeks
2001-12-10 06:05:28 +00:00
ru
a6c9cf7078
mdoc(7) police: removed whitespace at EOL.
2001-10-01 13:40:31 +00:00
yar
6d3768dfd8
Add a new option to edquota(8) - "-f", which will
...
allow to limit the prototype quota distribution (-p)
to a single filesystem. Useful when initializing
quotas on a newly added disk.
PR: bin/30816
Submitted by: Dmitry Morozovsky <marck@rinet.ru>
2001-09-28 10:22:36 +00:00
brian
8636b161b3
Fix the type of the NULL arg to execl()
...
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
ru
afd506414e
- Backout botched attempt to introduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
ru
f10dc9aca1
Set the default manual section for usr.sbin/ to 8.
2001-03-20 18:17:26 +00:00
ru
71e2293ad4
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 20:10:44 +00:00
ru
a6f5d950d8
Avoid use of direct troff requests in mdoc(7) manual pages.
2000-11-10 17:46:15 +00:00
gallatin
5f9ff12cb1
cleanups of my previous, quick & dirty fix of unaligned access errors on alpha.
...
submitted by: bde
2000-10-28 14:26:23 +00:00
gallatin
f6e34ced20
fix unaligned access errors caused by bad scanf/printf format strings
...
PR: alpha/21247
tested by: Marcin Gryszkalis <dagoon@rs.math.uni.lodz.pl>
2000-10-26 17:40:14 +00:00
peter
efabb9ccb1
$Id$ -> $FreeBSD$
1999-08-28 01:35:59 +00:00
chris
94e90769b6
Fix some bad references.
1999-08-16 20:56:31 +00:00
nik
559bbb333e
Add $Id$, to make it simpler for members of the translation teams to
...
track.
The Id line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
1999-07-12 20:12:29 +00:00