File: dont_define_strlcat_in_libdnet.patch

package info (click to toggle)
nmap 7.98%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,872 kB
  • sloc: cpp: 61,855; ansic: 31,545; python: 17,238; sh: 15,622; xml: 11,564; perl: 2,650; makefile: 966; java: 45; objc: 45
file content (28 lines) | stat: -rw-r--r-- 855 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Samuel Henrique <samueloph@debian.org>
Date: Wed, 29 Oct 2025 19:55:55 +0000
Subject: Drop strlcat definition from embedded library libdnet-stripped

 Upstream tried to do this at
 https://github.com/nmap/nmap/commit/1c2402122251d237e2b7af3fa8582d33f0d15a4f,
 but it wasn't enough, at least for us.
---
 libdnet-stripped/acconfig.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libdnet-stripped/acconfig.h b/libdnet-stripped/acconfig.h
index fb7f15a..8138c0c 100644
--- a/libdnet-stripped/acconfig.h
+++ b/libdnet-stripped/acconfig.h
@@ -19,9 +19,9 @@
 int inet_pton(int, const char *, void *);
 #endif
 
-#ifndef HAVE_STRLCAT
-int strlcat(char *, const char *, int);
-#endif
+// #ifndef HAVE_STRLCAT
+// int strlcat(char *, const char *, int);
+// #endif
 
 #ifndef HAVE_STRLCPY
 int strlcpy(char *, const char *, int);