Bug 17767

Summary: The comments in /etc/group break many programs
Product: Base System Reporter: root <root>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-STABLE   
Hardware: Any   
OS: Any   

Description root 2000-04-03 09:50:00 UTC
	Many programs e.g. proftpd asume /etc/group not to have any
	comments and complain about malformed group file on startup.

Fix: 

Remove comments from /etc/group
Comment 1 Sheldon Hearn freebsd_committer freebsd_triage 2000-04-03 13:01:19 UTC
State Changed
From-To: open->closed

These programs simply shouldn't do that.  The format of the /etc/group   
file is implementation specific.  Ours is well documented (group(5)) and 
proper, standard ways of reading its contents are provided (id(1),  
getgrent(3)). 

You should take this bad programming practice up with the authors of the 
software in which you've discovered it. 

Comment 2 Jeroen Ruigrok/Asmodai 2000-04-10 20:01:55 UTC
-On [20000403 12:01], root@web2000.ru (root@web2000.ru) wrote:
>
>	Many programs e.g. proftpd asume /etc/group not to have any
>	comments and complain about malformed group file on startup.
>
>>How-To-Repeat:
>>Fix:
>	
>	Remove comments from /etc/group

It can also be argued otherwise that programs are supposed to ignore
default comment characters from configuration files, such as the hash
(#).

-- 
Jeroen Ruigrok vd Werven/Asmodai    asmodai@[wxs.nl|bart.nl|freebsd.org]
Documentation nutter/C-rated Coder BSD: Technical excellence at its best  
The BSD Programmer's Documentation Project <http://home.wxs.nl/~asmodai>
When Silence cries...  Is it what I feel?  Or is it what you really long
to be..?