Date: Mon, 17 Feb 1997 21:59:34 +0100 (CET) From: Philippe Charnier <charnier@xp11.frmug.org> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/2755: login name length is still 8 chars in `at' Message-ID: <199702172059.VAA10086@xp11.frmug.org> Resent-Message-ID: <199702172150.NAA17836@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 2755
>Category: bin
>Synopsis: login name length is still 8 chars in `at'
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Feb 17 13:50:01 PST 1997
>Last-Modified:
>Originator: Philippe Charnier
>Organization:
>Release: FreeBSD 3.0-CURRENT i386
>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').
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702172059.VAA10086>
