From 7e91586f26a0a9dadb37cd134c2774a93f5c29b8 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 9 Jun 2024 21:19:05 -0300 Subject: [PATCH] options/posix: handle _SC_LOGIN_NAME_MAX in sysconf --- options/posix/generic/unistd-stubs.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/options/posix/generic/unistd-stubs.cpp b/options/posix/generic/unistd-stubs.cpp index 3beb692533..a40c6dc2b0 100644 --- a/options/posix/generic/unistd-stubs.cpp +++ b/options/posix/generic/unistd-stubs.cpp @@ -770,6 +770,9 @@ long sysconf(int number) { case _SC_HOST_NAME_MAX: mlibc::infoLogger() << "\e[31mmlibc: sysconf(_SC_HOST_NAME_MAX) unconditionally returns fallback value 256\e[39m" << frg::endlog; return 256; + case _SC_LOGIN_NAME_MAX: + mlibc::infoLogger() << "\e[31mmlibc: sysconf(_SC_LOGIN_NAME_MAX) unconditionally returns fallback value 256\e[39m" << frg::endlog; + return 256; case _SC_FSYNC: return _POSIX_FSYNC; case _SC_SAVED_IDS: