Motiejus Jakštys
b81072f726
add usergids
2022-03-04 10:55:09 +02:00
Motiejus Jakštys
a526379fd8
cosmetic changes
2022-03-02 06:18:19 +02:00
Motiejus Jakštys
0ccbdc4215
indentation
2022-03-02 06:07:07 +02:00
Motiejus Jakštys
e5870a95fe
make corpus smoke test pass
2022-03-02 05:42:23 +02:00
Motiejus Jakštys
3c4455efeb
cloning users and groups
2022-03-01 15:03:51 +02:00
Motiejus Jakštys
df8ab1fbbf
PackedGroup
2022-02-27 18:40:05 +02:00
Motiejus Jakštys
1ef962d64a
mutate users in tests
2022-02-27 06:26:01 +02:00
Motiejus Jakštys
b4c7cba627
mutable/immutable PackedUser
2022-02-26 11:20:44 +02:00
Motiejus Jakštys
b02edc7190
use ArrayList instead of slices
...
The API is more ergonimic.
2022-02-26 10:29:41 +02:00
Motiejus Jakštys
87b4b81a48
formatting
2022-02-25 15:22:05 +02:00
Motiejus Jakštys
22c61d1207
fix PackedUser.maxSize
2022-02-25 15:17:24 +02:00
Motiejus Jakštys
b0d74c0cad
formatting
2022-02-25 14:01:35 +02:00
Motiejus Jakštys
eed4f4e234
add some clarifying comments
2022-02-25 13:58:06 +02:00
Motiejus Jakštys
b9fb07121b
remove debug statements
2022-02-25 13:50:24 +02:00
Motiejus Jakštys
2154205711
refactoring UserReader
2022-02-25 13:47:23 +02:00
Motiejus Jakštys
751b51b859
change size treatment for PackedUser
2022-02-24 17:37:22 +02:00
Motiejus Jakštys
49a7d79b05
PackedUser is now readable
2022-02-24 17:33:27 +02:00
Motiejus Jakštys
0f43f8b2d0
wip refactoring PackedUser
2022-02-24 17:09:17 +02:00
Motiejus Jakštys
b924e3a935
start packed group
2022-02-24 10:13:26 +02:00
Motiejus Jakštys
3bf1b3fc01
bring back additional_gids_offset
2022-02-24 05:32:27 +02:00
Motiejus Jakštys
bb4b5eba03
add utf8 validation; rework user iterator
2022-02-23 06:09:42 +02:00
Motiejus Jakštys
0e5365127a
increase gecos length
2022-02-22 15:22:30 +02:00
Motiejus Jakštys
e06cac38b2
remove 3 bytes from PackedUser
...
additional_gids will be stored separately.
2022-02-22 15:16:45 +02:00
Motiejus Jakštys
78dc63669d
add tests for upper limits
2022-02-22 15:04:59 +02:00
Motiejus Jakštys
26fbfc5f08
fix non-packed iterator
2022-02-22 14:37:47 +02:00
Motiejus Jakštys
ab0562950c
add some guard rails w.r.t. padding
2022-02-21 13:54:35 +02:00
Motiejus Jakštys
f77d94e624
remove padding
2022-02-21 13:48:11 +02:00
Motiejus Jakštys
91849c128f
non-packed user iterator
2022-02-20 14:13:06 +02:00
Motiejus Jakštys
f2434e3d3c
working on iterator
2022-02-20 13:47:17 +02:00
Motiejus Jakštys
54ec710f10
wip iterator
2022-02-20 12:44:21 +02:00
Motiejus Jakštys
e54c153dd8
style
2022-02-20 09:47:47 +02:00
Motiejus Jakštys
9487194c95
simplify catch
2022-02-20 09:19:59 +02:00
Motiejus Jakštys
988ab9f6d4
update padded user alignment
2022-02-20 09:10:25 +02:00
Motiejus Jakštys
4dbc7b03bc
buffer is a pointer
2022-02-19 22:10:55 +02:00
Motiejus Jakštys
ae2d3d5443
generalize padding funcs
2022-02-19 21:23:33 +02:00
Motiejus Jakštys
2fc925923f
wip between-user padding
2022-02-19 18:20:50 +02:00
Motiejus Jakštys
4e45c6e5a9
simplify appendUser
2022-02-19 16:56:53 +02:00
Motiejus Jakštys
ca28332126
add unit tests for padding
2022-02-19 16:04:13 +02:00
Motiejus Jakštys
13b75e8046
user packing
2022-02-19 11:35:29 +02:00
Motiejus Jakštys
93c6a1c12a
rename shell_len_or_place to _idx
2022-02-18 20:36:32 +02:00
Motiejus Jakštys
2964c918cc
remove user.zig dependency on shell.zig
2022-02-18 20:35:42 +02:00
Motiejus Jakštys
da727113e5
filling packed user
2022-02-18 20:29:45 +02:00
Motiejus Jakštys
eacfc08592
fix PackedUser test
...
It is 120 bits long. @sizeOf returns 128, because, I guess, it tries to
word-align it (not byte-align it).
We are OK with non-word-aligned user struct, since it will have an
arbitrary []u8 slice right after it with the string data. However,
byte-alignment is important.
2022-02-18 17:40:04 +02:00
Motiejus Jakštys
1fe23aa1e5
adding user
2022-02-18 17:35:01 +02:00