Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Aug 1995 18:50:15 +0200
From:      Wolfram Schneider <wosch@cs.tu-berlin.de>
To:        FreeBSD-gnats-submit@freebsd.org, wosch@cs.tu-berlin.de
Subject:   kern/682: to shot command name in <sys/acct.h>
Message-ID:  <199508131650.SAA16346@localhost>
Resent-Message-ID: <199508132320.QAA11619@freefall.FreeBSD.org>

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

>Number:         682
>Category:       kern
>Synopsis:       to shot command name in <sys/acct.h>
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 13 16:20:01 PDT 1995
>Last-Modified:
>Originator:     Wolfram Schneider
>Organization:
>Release:        FreeBSD 2.0-ALPHA i386
>Environment:
>Description:

$ more /usr/include/sys/acct.h
struct acct {
        char    ac_comm[10];    /* command name */
                        ^^
This should be 16 and a macro.


>How-To-Repeat:

$ set /bin /sbin /usr/bin /usr/sbin /usr/libexec 
$ ls -R $* | \
  awk '{l = length($0); if (l > 10) { printf("%-16s %d\n", $0, l)}}' | \
  grep -v :

mount_cd9660     12
mount_fdesc      11
mount_kernfs     12
mount_msdos      11
mount_portal     12
mount_procfs     12
mount_union      11
lfs_cleanerd     12
locate.bigram    13
locate.code      11
locate.updatedb  15
rpc.rusersd      11
named.reload     12
named.restart    13


>Fix:

/usr/include/sys/acct.h:

#define AC_COMM_LEN 16
struct acct {
        char    ac_comm[AC_COMM_LEN];    /* command name */
	
>Audit-Trail:
>Unformatted:



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