From 5d3dfdc8dcaf743103149d95c826dad697b66a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 3 Jan 2023 13:44:59 +0200 Subject: [PATCH] architecture.md: fix the header size --- docs/architecture.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/architecture.md b/docs/architecture.md index 88b2857..8789a39 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -25,7 +25,7 @@ struct passwd { Turbonss, among others, implements this call, and takes the following steps to resolve a username to a `struct passwd*`: -- Open the DB (using `mmap`) and interpret it's first 64 bytes as a `*struct +- Open the DB (using `mmap`) and interpret it's first 128 bytes as a `*struct Header`. The header stores offsets to the sections of the file. This needs to be done once, when the NSS library is loaded. - Hash the username using a perfect hash function. Perfect hash function