Date: Mon, 21 Apr 2003 14:48:47 -0600 (CST) From: Brian D Gallaway <bdg730@makserver0.usask.ca> To: FreeBSD-gnats-submit@FreeBSD.org Subject: conf/51256: chkgrp should make sure the file is newline terminated Message-ID: <200304212048.h3LKmloI002492@makserver0.usask.ca> Resent-Message-ID: <200304212300.h3LN0Wxa071326@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 51256
>Category: conf
>Synopsis: chkgrp should make sure the file is newline terminated
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Apr 21 16:00:32 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Brian D Gallaway
>Release: FreeBSD 5.0-RELEASE i386
>Organization:
University of Saskatchewan
>Environment:
System: FreeBSD makserver0.usask.ca 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Thu Jan 16 22:16:53 GMT 2003 root@hollin.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386
>Description:
The chkgrp command does not detect when there is not a newline at the end of the file. If the /etc/group file is not newline terminated, the /etc/group file's last entry will not be used. This is an error that could easily be checked for in chkgrp.
>How-To-Repeat:
see above
>Fix:
have chkgrp warn the user if no newline is found at the end of /etc/group
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304212048.h3LKmloI002492>
