Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Feb 2004 18:59:51 -0800 (PST)
From:      David Hill <david@wmol.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/62944: edquota -p does not honor MAXLOGNAME
Message-ID:  <200402170259.i1H2xpwd025248@www.freebsd.org>
Resent-Message-ID: <200402170300.i1H30bXm007845@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         62944
>Category:       misc
>Synopsis:       edquota -p does not honor MAXLOGNAME
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 16 19:00:37 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     David Hill
>Release:        5.2.1-RC2
>Organization:
>Environment:
FreeBSD hostname.domain.com 5.2.1-RC2 FreeBSD 5.2.1-RC2 #7: Fri Feb 13 17:09:18 EST 2004     user@hostname.domain.com:/usr/obj/usr/src/sys/MAIL  i386
>Description:
/usr/sbin/edquota does not honor MAXLOGNAME.

I manually changed UT_NAMESIZE to 64, and MAXLOGNAME to 65 and rebuilt my system with make world.  Now copying quotas with from a user to a user with a username of over 30 characters with "edquota -p" fails:

orion# edquota -p david davidjhill.somenewdomain1.org
edquota: davidjhill.somenewdomain1.o: no such user

edquota davidjhill.somenewdomain1.org works just fine.

>How-To-Repeat:
edquota -p username username-that-has-over-30-chars
>Fix:
I believe changing char buf[30]; to char buf[MAXLOGNAME];
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402170259.i1H2xpwd025248>