From charnier@xp11.frmug.org  Mon Feb 17 13:41:00 1997
Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA17234
          for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Feb 1997 13:40:55 -0800 (PST)
Received: (from uucp@localhost) by frmug.org (8.8.5/8.8.2/frmug-1.3) with UUCP id WAA03924 for FreeBSD-gnats-submit@freebsd.org; Mon, 17 Feb 1997 22:40:50 +0100 (MET)
Received: (from charnier@localhost)
	by xp11.frmug.org (8.8.5/8.8.5/xp11-uucp-1.1) id VAA10086;
	Mon, 17 Feb 1997 21:59:34 +0100 (CET)
Message-Id: <199702172059.VAA10086@xp11.frmug.org>
Date: Mon, 17 Feb 1997 21:59:34 +0100 (CET)
From: Philippe Charnier <charnier@xp11.frmug.org>
Reply-To: charnier@xp11.frmug.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: login name length is still 8 chars in `at' 
X-Send-Pr-Version: 3.2

>Number:         2755
>Category:       bin
>Synopsis:       login name length is still 8 chars in `at'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    davidn
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 17 13:50:01 PST 1997
>Closed-Date:    Tue Feb 18 16:45:56 EST 1997
>Last-Modified:  Tue Feb 18 16:48:24 EST 1997
>Originator:     Philippe Charnier
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
>Environment:

	

>Description:

	While reading -questions and a mail from mark thompson 
<thompson@tgsoft.com> (questions-digest Sunday, 16 February 1997 Volume 03 :
 Number 073), I noticed that `at' still thinks that login name length is 8 
 chars.

>How-To-Repeat:

In /usr/src/usr.bin/at
xp11# grep 8 *.c
[...]
at.c:   || (strlen(mailname) > 8) || (getpwnam(mailname)==NULL))
                             ^^^^
at.c:    fprintf(fp, "#!/bin/sh\n# atrun uid=%ld gid=%ld\n# mail %8s %d\n",
                                                                ^^^^^
[...]
xp11# 

In /usr/src/libexec/atrun
atrun.c:    if (fscanf(stream, "#!/bin/sh\n# atrun uid=%ld gid=%ld\n# mail %8s %d",
                                                                           ^^^^

>Fix:
	
use MAXLOGNAME from sys/param.h or UT_NAMESIZE from utmp.h (don't forget that
MAXLOGNAME == 16 == 15 + '\0').

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->davidn 
Responsible-Changed-By: davidn 
Responsible-Changed-When: Tue Feb 18 16:29:04 EST 1997 
Responsible-Changed-Why:  
I'll take this one. 
State-Changed-From-To: open->closed 
State-Changed-By: davidn 
State-Changed-When: Tue Feb 18 16:45:56 EST 1997 
State-Changed-Why:  
Fixed in revision 1.9 of at.c. 
>Unformatted:
