Subject: lib/2843: Missing header in grp.h
To: None <gnats-bugs@gnats.netbsd.org>
From: None <darcy@druid.com>
List: netbsd-bugs
Date: 10/14/1996 07:07:36
>Number:         2843
>Category:       lib
>Synopsis:       Missing header file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 14 04:20:02 1996
>Last-Modified:
>Originator:     D'Arcy J.M. Cain
>Organization:
D'Arcy J.M. Cain                           |  Democracy is three wolves
darcy@{druid.com|greenlight.ca}            |  and a sheep voting on
+1 416 943 5281     (DoD#0082)    (eNTP)   |  what's for dinner.
  --  Home: http://www.druid.com/      Work: http://www.greenlight.ca  --
>Release:        1.2
>Environment:
	
System: NetBSD druid.com 1.2 NetBSD 1.2 (DRUID) #2: Wed Oct 2 11:09:04 EDT 1996 darcy@druid.com:/usr/src/sys/arch/i386/compile/DRUID i386


>Description:
	Although include/grp.h uses non-native types such as gid_t, the
	header sys/types.h which defines these is not included.  This
	won't be noticed if sys/types is included in the source file before
	grp.h but it should be included here for safety.
	
>How-To-Repeat:
	Compile a program using gid_t type including grp.h but not
	sys/types.h
	
>Fix:
*** ../src.original/./include/grp.h	Sun Oct 13 15:34:07 1996
--- ./include/grp.h	Sun Oct 13 15:34:24 1996
***************
*** 43,48 ****
--- 43,50 ----
  #ifndef _GRP_H_
  #define	_GRP_H_
  
+ #include	<sys/types.h>
+ 
  #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
  #define	_PATH_GROUP		"/etc/group"
  #endif
	
>Audit-Trail:
>Unformatted: