about summary refs log tree commit diff
path: root/nss/nss_files/files-rpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/nss_files/files-rpc.c')
-rw-r--r--nss/nss_files/files-rpc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nss/nss_files/files-rpc.c b/nss/nss_files/files-rpc.c
index f8bef451fa..0ad1e21848 100644
--- a/nss/nss_files/files-rpc.c
+++ b/nss/nss_files/files-rpc.c
@@ -21,7 +21,7 @@ Cambridge, MA 02139, USA.  */
 
 
 #define ENTNAME		rpcent
-#define DATAFILE	"/etc/rpc"
+#define DATABASE	"rpc"
 
 struct rpcent_data {};
 
@@ -34,13 +34,13 @@ LINE_PARSER
  INT_FIELD (result->r_number, isspace, 1, 10,);
  )
 
-#include "files-XXX.c"
+#include GENERIC
 
-DB_LOOKUP (rpcbyname,
+DB_LOOKUP (rpcbyname, 1 + strlen (name), (".%s", name),
 	   LOOKUP_NAME (r_name, r_aliases),
 	   const char *name)
 
-DB_LOOKUP (rpcbynumber,
+DB_LOOKUP (rpcbynumber, 20, ("=%d", number),
 	   {
 	     if (result->r_number == number)
 	       break;