conf/51256: chkgrp should make sure the file is newline terminated

Brian D Gallaway bdg730 at makserver0.usask.ca
Mon Apr 21 16:00:34 PDT 2003


>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 at 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:


More information about the freebsd-bugs mailing list