Commit Graph

7 Commits

Author SHA1 Message Date
Philippe Charnier
ea28e1c532 Use err(3). Add prototypes. 1997-09-17 06:29:23 +00:00
Jonathan Lemon
026df10061 Remove temporary file on exit.
PR:		4010
Submitted by:	"Anatoly A. Orehovsky" <tolik@www.tomsk.su>
1997-08-19 20:45:45 +00:00
Warner Losh
6c3f552a31 compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-31 05:11:47 +00:00
Mike Pritchard
d172713dd7 Allow the use of uid ranges when using the "-p" option to allow
easy setup of default quotas for a range of uids.  Usage:

edquota -p protouser startuid-enduid

E.g.
edquota -p mpp 10000-19999

Will duplicate the quota limints for user mpp for uids 10000 - 19999.
The uids in question do not have to currently exist in /etc/passwd.
1996-03-31 20:57:44 +00:00
Bruce Evans
ff55774394 Cast some expressions involving dbtob() to (unsigned long) and print them
using %lu.  This became more broken when I fixed dbtob() to support byte
offsets >= 4GB.  The type had to change to [u]quad_t.  Previously the
expressions had type unsigned long and were printed using %d.  After
division by 1024, the expressions are guaranteed to fit in an unsigned
long, at least for the standard DEV_BSIZE, so edquota doesn't need to
know about quad_t's explicitly.

Fix all the other format mismatches exposed by compiling with -Wformat
(6 more quota limits of type unsigned long printed using %d and 6 time_t's
(i.e., longs) printed using %d).
1995-05-07 07:48:35 +00:00
Andrey A. Chernov
d117a622c6 Make edquota works with other then vi editors,
i.e.check file by name, not by fd
1994-11-22 18:52:58 +00:00
Rodney W. Grimes
dea673e932 BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00