Define LOGIN_NAME_MAX on HURD

This commit is contained in:
Chris Hofstaedtler
2024-08-06 00:17:43 +02:00
parent 70bb4db51c
commit d390695b6d
2 changed files with 26 additions and 0 deletions
@@ -0,0 +1,25 @@
From: Chris Hofstaedtler <zeha@debian.org>
Date: Tue, 6 Aug 2024 00:16:59 +0200
Subject: Define LOGIN_NAME_MAX on HURD
---
lib/chkname.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/chkname.c b/lib/chkname.c
index 9954410..751fdf0 100644
--- a/lib/chkname.c
+++ b/lib/chkname.c
@@ -26,6 +26,12 @@
#include <stddef.h>
#include <unistd.h>
+#ifdef __GNU__
+#ifndef LOGIN_NAME_MAX
+#define LOGIN_NAME_MAX 256
+#endif
+#endif
+
#include "defines.h"
#include "chkname.h"
+1
View File
@@ -7,3 +7,4 @@ upstream/tests-Support-run_some-from-exported-tarball.patch
debian/tests-disable-su.patch
debian/tests-libsubid-04_nss-fix-setting-basedir.patch
debian/Adapt-login.defs-for-Debian.patch
debian/0010-Define-LOGIN_NAME_MAX-on-HURD.patch