1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

security/snoopy: Update to 2.5.2

Changes:	https://github.com/a2o/snoopy/releases
This commit is contained in:
Po-Chuan Hsieh 2024-10-29 22:18:58 +08:00
parent 0cd3f93f19
commit 42f584cbc0
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
3 changed files with 7 additions and 7 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= snoopy
PORTVERSION= 2.5.1
PORTVERSION= 2.5.2
CATEGORIES= security
MASTER_SITES= https://github.com/a2o/snoopy/releases/download/snoopy-${PORTVERSION}/

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1684104332
SHA256 (snoopy-2.5.1.tar.gz) = 09daa74213c360acaf84318710f2902763a9c08be54753dabcc09478dcb9c43e
SIZE (snoopy-2.5.1.tar.gz) = 685195
TIMESTAMP = 1729994286
SHA256 (snoopy-2.5.2.tar.gz) = 9bee136cc3a676e8a11e5ad23339f32fe1a6aea473abca1cc625beb71ebbafc9
SIZE (snoopy-2.5.2.tar.gz) = 689418

View File

@ -1,4 +1,4 @@
--- src/datasource/domain.c.orig 2022-08-27 02:05:09 UTC
--- src/datasource/domain.c.orig 2023-07-28 01:34:23 UTC
+++ src/datasource/domain.c
@@ -36,7 +36,9 @@
#include <errno.h>
@ -19,14 +19,14 @@
#define HOSTS_PATH "/etc/hosts"
#define HOSTS_LINE_SIZE_MAX 1024
#define HOSTS_LINE_POS_MAX 1023
@@ -76,12 +78,12 @@ int snoopy_datasource_domain (char * const result, __a
@@ -76,12 +78,12 @@ int snoopy_datasource_domain (char * const resultBuf,
* START: COPY FROM datasource/hostname
*/
/* Get my hostname first */
- retVal = gethostname(hostname, HOST_NAME_MAX);
+ retVal = gethostname(hostname, _POSIX_HOST_NAME_MAX);
if (0 != retVal) {
return snprintf(result, SNOOPY_DATASOURCE_MESSAGE_MAX_SIZE, "(error @ gethostname(): %d)", errno);
return snprintf(resultBuf, resultBufSize, "(error @ gethostname(): %d)", errno);
}
- // If hostname was something alien (longer than HOST_NAME_MAX), then the