Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/acccre-server.h
diff options
context:
space:
mode:
authorIvan Davydov <lotigara@lotigara.ru>2025-06-17 17:03:48 +0300
committerIvan Davydov <lotigara@lotigara.ru>2025-06-17 17:03:48 +0300
commit28c13a3e38e8b350ffadb1ae7c2687aafe7ac6c0 (patch)
tree32ad7fc29bdfdac00442ee492286c29ea95a2cd0 /acccre-server.h
parent9d945cd7e55c7d4f432dbe8ea758178fadd44b04 (diff)
Re-worked handling of too long socket paths
Diffstat (limited to 'acccre-server.h')
-rw-r--r--acccre-server.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/acccre-server.h b/acccre-server.h
index 7ffd84b..d030c6b 100644
--- a/acccre-server.h
+++ b/acccre-server.h
@@ -22,4 +22,7 @@ const int sigs[] = {
#define BUFFER_SIZE 100
#define DEFAULT_PATH "./acccre.sock"
+/* Taken from https://pubs.opengroup.org/onlinepubs/9799919799/ */
+#define MAX_SUN_PATH sizeof(((struct sockaddr_un *)0)->sun_path)
typedef uint16_t acccre_size_t;
+