ports/security/gvmd/files/patch-src_manage.c
Jose Alonso Cardenas Marquez db1cf95d31 security/gvm: Fix issues with newer version of glib2/pcre2
PR:		267429
Reported by:	freebsd _at_ ny-central.org, andrew _at_ tekrealm.net
Obtained from:	https://github.com/greenbone/gvmd/pull/1867/files
2022-10-30 18:05:16 -05:00

19 lines
516 B
C

--- src/manage.c 2022-07-21 02:20:24.000000000 -0500
+++ src/manage.c 2022-10-30 17:41:24.914386000 -0500
@@ -76,6 +76,7 @@
#include <sys/file.h>
#include <sys/stat.h>
#include <sys/types.h>
+#include <sys/socket.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
@@ -5952,7 +5953,7 @@
int
validate_username (const gchar * name)
{
- if (g_regex_match_simple ("^[[:alnum:]-_.]+$", name, 0, 0))
+ if (g_regex_match_simple ("^[[:alnum:]_.-]+$", name, 0, 0))
return 0;
else
return 1;