]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs: reference NAME_MAX where we talk about filenames
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Mar 2021 21:43:41 +0000 (22:43 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Mar 2021 21:47:48 +0000 (22:47 +0100)
docs/USER_NAMES.md

index ec07b19f306b44b17332fac374e7ba022742d5c8..daafdf2dce0ca5b32613b68a72c9fc9073451f1e 100644 (file)
@@ -87,8 +87,8 @@ hyphen. A size limit is enforced: the minimum of `sysconf(_SC_LOGIN_NAME_MAX)`
 (typically 256 on Linux; rationale: this is how POSIX suggests to detect the
 limit), `UT_NAMESIZE-1` (typically 31 on Linux; rationale: names longer than
 this cannot correctly appear in `utmp`/`wtmp` and create ambiguity with login
-accounting) and `FILENAME_MAX` (4096 on Linux; rationale: user names typically
-appear in directory names, i.e. the home directory), thus MIN(256, 31, 4096) =
+accounting) and `NAME_MAX` (255 on Linux; rationale: user names typically
+appear in directory names, i.e. the home directory), thus MIN(256, 31, 255) =
 31.
 
 Note that these rules are both more strict and more relaxed than all of the