From bdee910e88006ae33dc83ac3d2c0708adb6627d0 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Wed, 15 Jul 2020 13:41:31 +0200 Subject: nss: Add __nss_fgetent_r And helper functions __nss_readline, __nss_readline_seek, __nss_parse_line_result. This consolidates common code for handling overlong lines and parse files. Use the new functionality in internal_getent in nss/nss_files/files-XXX.c. Tested-by: Carlos O'Donell Reviewed-by: Carlos O'Donell --- nss/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nss/Makefile') diff --git a/nss/Makefile b/nss/Makefile index 00f4d89310..20c412c3e1 100644 --- a/nss/Makefile +++ b/nss/Makefile @@ -28,7 +28,9 @@ headers := nss.h routines = nsswitch getnssent getnssent_r digits_dots \ valid_field valid_list_field rewrite_field \ $(addsuffix -lookup,$(databases)) \ - compat-lookup nss_hash nss_files_fopen + compat-lookup nss_hash nss_files_fopen \ + nss_readline nss_parse_line_result \ + nss_fgetent_r # These are the databases that go through nss dispatch. # Caution: if you add a database here, you must add its real name -- cgit 1.4.1