rename shell_len_or_place to _idx

This commit is contained in:
2022-02-18 20:36:32 +02:00
committed by Motiejus Jakštys
parent 2964c918cc
commit 93c6a1c12a
2 changed files with 7 additions and 7 deletions

View File

@@ -220,7 +220,7 @@ const User = struct {
additional_gids_offset: u29,
// shell is a different story, documented elsewhere.
shell_here: u1,
shell_len_or_place: u6,
shell_len_or_idx: u6,
homedir_len: u6,
username_is_a_suffix: u1,
username_offset_or_len: u5,
@@ -279,7 +279,7 @@ const ShellIndex = struct {
In the user's struct the `shell_here=true` bit signifies that the shell is
stored with userdata. `false` means it is stored in the `Shells` section. If
the shell is stored "here", it is the first element in `stringdata`, and it's
length is `shell_len_or_place`. If it is stored externally, the latter variable
length is `shell_len_or_idx`. If it is stored externally, the latter variable
points to it's index in the ShellIndex area.
Shells in the external storage are sorted by their weight, which is