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
This commit is contained in:
Ceri Davies 2004-02-24 20:58:16 +00:00
parent 20e61691a2
commit fc31408d87
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126201

View File

@ -110,7 +110,7 @@ main(int argc, char **argv)
char *protoname, *cp, *oldoptarg;
int eflag = 0, tflag = 0, pflag = 0, ch;
char *fspath = NULL;
char buf[30];
char buf[MAXLOGNAME];
if (argc < 2)
usage();