mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 07:26:29 -04:00
PR: 267429 Reported by: freebsd _at_ ny-central.org, andrew _at_ tekrealm.net Obtained from: https://github.com/greenbone/gvmd/pull/1867/files
19 lines
516 B
C
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;
|