Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Apr 2006 12:19:03 +0930 (CST)
From:      "Daniel J. O'Connor" <darius@dons.net.au>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/96536: Request to import NetBSD's getent(1)
Message-ID:  <200604300249.k3U2n3F3022629@midget.dons.net.au>
Resent-Message-ID: <200604300250.k3U2o8Ut089954@freefall.freebsd.org>

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

>Number:         96536
>Category:       bin
>Synopsis:       Request to import NetBSD's getent(1)
>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:   Sun Apr 30 02:50:08 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Daniel J. O'Connor
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD midget.dons.net.au 6.0-STABLE FreeBSD 6.0-STABLE #0: Sun Dec 11 16:43:46 CST 2005 darius@midget.dons.net.au:/usr/obj/usr/src/sys/MIDGET i386


>Description:
getent(1) is a very useful program when you are trying to debug NSS issues. Unfortunately
FreeBSD doesn't have it, but NetBSD does.

It compiles in FreeBSD (6.x and 7.x anyway) with trivial modifications.

>How-To-Repeat:
>Fix:

This is the only patch to get it to build..

Index: getent.c
===================================================================
RCS file: /cvsroot/src/usr.bin/getent/getent.c,v
retrieving revision 1.7
diff -u -r1.7 getent.c
--- getent.c	24 Aug 2005 14:31:02 -0000	1.7
+++ getent.c	30 Apr 2006 02:06:06 -0000
@@ -41,6 +41,7 @@
 __RCSID("$NetBSD: getent.c,v 1.7 2005/08/24 14:31:02 ginsbach Exp $");
 #endif /* not lint */
 
+#include <sys/param.h>
 #include <sys/socket.h>
 
 #include <assert.h>
@@ -60,7 +61,7 @@
 #include <arpa/nameser.h>
 
 #include <net/if.h>
-#include <net/if_ether.h>
+#include <net/ethernet.h>
 
 #include <netinet/in.h>		/* for INET6_ADDRSTRLEN */

>Release-Note:
>Audit-Trail:
>Unformatted:



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