Commit Graph

38 Commits

Author SHA1 Message Date
jrf 190b2e4c51 Replaced strncpy with strlcpy. Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.
2004-09-07 13:20:39 +00:00
christos 6bd1d6d4db Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
bouyer ebd3b31bf7 Check the right error code to fallback to rquota v1 RPC.
Problem found and fix tested by Jan Schaumann.
2003-09-21 17:01:43 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
bouyer a39a98c45d Implement rquota RPC version 2, compatible with the linux implementation,
as proposed on tech-userlevel on Dec 06 2002. This allows to retrieve
group quota informations from NFS servers.
2003-02-14 14:55:58 +00:00
wiz 5e442fbbdd specified, not specifed. 2003-01-06 12:38:47 +00:00
wiz cb9405b1ab Sort sections. 2001-12-08 19:10:54 +00:00
wiz aded0d2cce Whitespace cleanup. 2001-12-01 16:43:07 +00:00
cgd c5fdfac22d Fix order of arithmetic operations so that NFS file system quotas over
4GB are displayed properly.
2001-03-29 21:54:01 +00:00
bouyer 7616130d51 Explicitely cast to (u_quad_t) calls to btodb() and dbtob() to avoid
int overflow. It's now possible to add/display quotas of more than
4G.
XXX I'm sure there is a PR open on this but I couln't find it with the
usual search engines. If someone knows it's number ...
1999-12-16 17:29:52 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
ross f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
mycroft cc06efc9db const poisoning. 1998-07-26 22:15:38 +00:00
mrg 55a09b0837 quota does not need to be setuid root. 1998-07-12 04:56:22 +00:00
mrg d6efcbd88e call getuid() once. KNF. ensure a buffer is nul-terminated. 1998-07-12 04:56:06 +00:00
kleink 6e574a3997 Need <time.h> for time() prototype. 1998-04-02 10:45:54 +00:00
mrg 9395f04c8b fix compile warnings on the sparc. 1997-10-20 10:32:06 +00:00
lukem 0d374e0c45 disable WARNS here, fix .Nm usage, deprecate register, s/index/strchr/ 1997-10-19 13:16:33 +00:00
mrg 1663c913e5 merge lite-2; clean up includes. 1997-10-19 04:59:20 +00:00
kleink 66105c37fc Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.
1997-08-25 19:31:43 +00:00
mrg f9db097104 remove dangerous sprintf and strcpy calls. 1997-02-11 09:29:26 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
lukem 5d37ffa7eb fix the the typos 1996-11-10 23:58:22 +00:00
mark f8fcb56bce Use an integer instead of a char to store the getopt() return value in
order to match the function prototype and to work with compilers that
default to unsigned chars.
Compare the getopt() return value with -1 instead of EOF.
1996-04-01 21:31:33 +00:00
jtc 0366d49b2d Fixed to use ffs instead of ufs; See PR #1790, etc. 1996-02-01 02:33:52 +00:00
cgd 3d113b326b don't assume f_fstypename is larger than MFSNAMELEN or is nul-terminated 1995-06-18 10:58:06 +00:00
mycroft fda52a9197 Include the egid when displaying the groups and doing security checks. 1995-06-03 03:12:05 +00:00
cgd f9acc964ad needs stdlib.h 1994-12-24 17:31:23 +00:00
deraadt c119261953 more NFS quota support from <bouyer@ensta.fr> and myself. 1994-06-28 07:47:23 +00:00
mycroft e82c4deeb5 Merge local changes. 1994-06-13 21:33:03 +00:00
cgd 86be4d6208 long cast 1994-04-01 03:29:58 +00:00
jtc abfeba19ee Getgroup's second argument is now a gid_t ptr. 1994-04-01 01:19:08 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft 690cae8181 Add RCS indentifiers. 1993-07-31 15:17:49 +00:00
cgd dab5e017db added, from net/2 (patch 124). 1993-04-09 12:58:42 +00:00