From 9a80c753dc698405e427f413851981694c9db7d8 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 15 Dec 2024 09:37:51 +0100 Subject: config: improve line buffer for config file from 256 -> 2048 byte Support extensive length of exclude_users to avoid truncation in VyOS. --- debian/changelog | 6 ++++++ nss_tacplus.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 61aee24..529814a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libnss-tacplus (1.0.4-cl5.1.0u11.1) UNRELEASED; urgency=medium + + * Improve line buffer for config file from 256 -> 2048 byte + + -- Christian Breunig Sun, 15 Dec 2024 10:40:40 +0100 + libnss-tacplus (1.0.4-cl5.1.0u11) RELEASED; urgency=medium * new build for 5.1.0 from original hash diff --git a/nss_tacplus.c b/nss_tacplus.c index 3a7e09c..8285ce6 100644 --- a/nss_tacplus.c +++ b/nss_tacplus.c @@ -144,7 +144,7 @@ static int str_to_ipv4(const char *srcaddr, struct addrinfo *p_addr_info) static int nss_tacplus_config(int *errnop, const char *cfile, int top) { FILE *conf; - char lbuf[256]; + char lbuf[2048]; static struct stat lastconf[MAX_INCL]; static char *cfilelist[MAX_INCL]; struct stat st, *lst; -- cgit v1.2.3