security/snoopy: Update to 2.5.2
Changes: https://github.com/a2o/snoopy/releases
This commit is contained in:
parent
0cd3f93f19
commit
42f584cbc0
@ -1,5 +1,5 @@
|
|||||||
PORTNAME= snoopy
|
PORTNAME= snoopy
|
||||||
PORTVERSION= 2.5.1
|
PORTVERSION= 2.5.2
|
||||||
CATEGORIES= security
|
CATEGORIES= security
|
||||||
MASTER_SITES= https://github.com/a2o/snoopy/releases/download/snoopy-${PORTVERSION}/
|
MASTER_SITES= https://github.com/a2o/snoopy/releases/download/snoopy-${PORTVERSION}/
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
TIMESTAMP = 1684104332
|
TIMESTAMP = 1729994286
|
||||||
SHA256 (snoopy-2.5.1.tar.gz) = 09daa74213c360acaf84318710f2902763a9c08be54753dabcc09478dcb9c43e
|
SHA256 (snoopy-2.5.2.tar.gz) = 9bee136cc3a676e8a11e5ad23339f32fe1a6aea473abca1cc625beb71ebbafc9
|
||||||
SIZE (snoopy-2.5.1.tar.gz) = 685195
|
SIZE (snoopy-2.5.2.tar.gz) = 689418
|
||||||
|
|||||||
@ -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
|
+++ src/datasource/domain.c
|
||||||
@@ -36,7 +36,9 @@
|
@@ -36,7 +36,9 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@ -19,14 +19,14 @@
|
|||||||
#define HOSTS_PATH "/etc/hosts"
|
#define HOSTS_PATH "/etc/hosts"
|
||||||
#define HOSTS_LINE_SIZE_MAX 1024
|
#define HOSTS_LINE_SIZE_MAX 1024
|
||||||
#define HOSTS_LINE_POS_MAX 1023
|
#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
|
* START: COPY FROM datasource/hostname
|
||||||
*/
|
*/
|
||||||
/* Get my hostname first */
|
/* Get my hostname first */
|
||||||
- retVal = gethostname(hostname, HOST_NAME_MAX);
|
- retVal = gethostname(hostname, HOST_NAME_MAX);
|
||||||
+ retVal = gethostname(hostname, _POSIX_HOST_NAME_MAX);
|
+ retVal = gethostname(hostname, _POSIX_HOST_NAME_MAX);
|
||||||
if (0 != retVal) {
|
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
|
- // If hostname was something alien (longer than HOST_NAME_MAX), then the
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user