File: fix-included-file-duplication.patch

package info (click to toggle)
nftables 1.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,876 kB
  • sloc: ansic: 49,428; sh: 19,000; yacc: 5,611; python: 1,714; lex: 1,346; makefile: 371
file content (22 lines) | stat: -rw-r--r-- 497 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Author: Pablo Neira Ayuso <pablo@netfilter.org>
Last-Update: 2025-09-25
Bug-Debian: https://bugs.debian.org/1112512
Forwarded: not-needed
Description: libnftables: do not re-add default include directory in include
 search
 .
 Otherwise globbing might duplicate included files because
 include_path_glob() is called twice.

--- a/src/libnftables.c
+++ b/src/libnftables.c
@@ -176,6 +176,9 @@
 			return true;
 	}
 
+	if (!strcmp(path, DEFAULT_INCLUDE_PATH))
+		return true;
+
 	return false;
 }