1
Fork 0
Commit Graph

330 Commits

Author SHA1 Message Date
Motiejus Jakštys c4e84be1a9 turbonss-getent: use 4K buffered writer 2022-07-14 06:46:50 +03:00
Motiejus Jakštys d731fe377b skip membership if already in the primary group 2022-07-14 06:30:45 +03:00
Motiejus Jakštys 7a27c06f7b fix turbo-getent unit test 2022-07-14 06:15:21 +03:00
Motiejus Jakštys 3fac6a82e5 make corpus more realistic
- the group of the user's gid should not contain the user as the member.
- fix all tests
2022-07-14 06:13:42 +03:00
Motiejus Jakštys de1ab2d0d1 turbo-getgroup: the primary users should not be returned 2022-07-12 14:05:45 +03:00
Motiejus Jakštys 2cdc2ae6c6 prefix test cases with context 2022-07-12 12:59:50 +03:00
Motiejus Jakštys c4e8f1f02c turbo-getent group implementation (no tests) 2022-07-12 12:55:46 +03:00
Motiejus Jakštys d2407685a0 remove debug code 2022-07-12 12:44:42 +03:00
Motiejus Jakštys 1a48bb41ea fix type/function name casing 2022-07-11 15:38:32 +03:00
Motiejus Jakštys 275920a111 gitignore db.turbo 2022-07-11 15:36:00 +03:00
Motiejus Jakštys e116dd0c28 wip -- turbo-getent 2022-07-11 15:35:46 +03:00
Motiejus Jakštys 9a7447eaa1 tests for passwd_all 2022-07-11 14:32:24 +03:00
Motiejus Jakštys f0777b9e94 getent passwd 2022-07-11 11:11:25 +03:00
Motiejus Jakštys aaf9d2cc67 update turbo-analyze 2022-07-11 06:11:24 +03:00
Motiejus Jakštys 6ae17fe99d wip: turbo-getent 2022-07-11 06:07:11 +03:00
Motiejus Jakštys 8877c7d812 rename main files 2022-07-11 05:59:02 +03:00
Motiejus Jakštys c8fd5a8c72 analyze: fix test case when db.turbo is in $PWD 2022-07-11 05:44:04 +03:00
Motiejus Jakštys 55c63b29da support strip in build.zig 2022-07-11 04:54:55 +03:00
Motiejus Jakštys 292bc4e4e0 shrink turbo-analyze
https://github.com/ziglang/zig/issues/12061
2022-07-09 21:02:03 +03:00
Motiejus Jakštys 02ddc548f5 debugging libnss_turbo.so.2 2022-07-09 19:04:19 +03:00
Motiejus Jakštys eaa56ad32a use bdz_read.c 2022-07-09 18:15:04 +03:00
Motiejus Jakštys ac71195144 use SplitBackwardsIterator from stdlib 2022-07-09 17:49:11 +03:00
Motiejus Jakštys 9f884b96f7 build libnss_turbo.so.2.0.0 2022-07-09 17:33:13 +03:00
Motiejus Jakštys 78ac541e49 libnss: pass state explicitly 2022-07-09 16:51:44 +03:00
Motiejus Jakštys f327fb24ba tests for initgroups_dyn 2022-07-09 16:12:10 +03:00
Motiejus Jakštys 5fa4a71ddf use omit_members sometimes 2022-07-09 05:38:19 +03:00
Motiejus Jakštys 434f9e1571 wip initgroups_dyn 2022-07-08 06:29:42 +03:00
Motiejus Jakštys df14c1fc67 refactor libnss.zig 2022-07-07 21:23:10 +03:00
Motiejus Jakštys 98db4ce0b2 wip: setgrent/setpwent + endpwent/endgrent 2022-07-07 16:42:45 +03:00
Motiejus Jakštys 50e116275c group names are sentinel-terminated 2022-07-07 14:39:40 +03:00
Motiejus Jakštys 5f49a9f881 wip: getgrnam_r and getgrgid_r 2022-07-07 06:54:27 +03:00
Motiejus Jakštys 1995da9a77 nit: naming 2022-07-07 06:14:49 +03:00
Motiejus Jakštys a63c60cc6f passwd fields now have sentinels 2022-07-06 17:14:54 +03:00
Motiejus Jakštys 4a3d43561f the test seems to work 2022-07-06 16:47:10 +03:00
Motiejus Jakštys a2893a366e getpwnam_r and getpwuid_r 2022-07-06 16:29:21 +03:00
Motiejus Jakštys 64f6af6e94 libnss: better handling of env vars 2022-07-06 14:06:50 +03:00
Motiejus Jakštys 59eae5fa3b libnss: shorter code 2022-07-06 13:53:51 +03:00
Motiejus Jakštys 9bd922a55a better comptime 2022-07-06 13:29:36 +03:00
Motiejus Jakštys efdc919195 wip libnss 2022-07-06 13:19:15 +03:00
Motiejus Jakštys 4e9f609131 show endianess better 2022-07-06 12:38:56 +03:00
Motiejus Jakštys f2570529d7 add missing args 2022-07-06 12:35:17 +03:00
Motiejus Jakštys 6c6d9d9c2c replace users_arr and groups_arr with smaller arrays
RSS savings are trivial, it was not worth it.
2022-07-06 12:32:52 +03:00
Motiejus Jakštys 86d5c026be avoid use of groups_arr 2022-07-06 12:18:53 +03:00
Motiejus Jakštys 97dde99d5e unix2db: use correct file permissions 2022-07-06 11:30:50 +03:00
Motiejus Jakštys cb9250010e inverse headers 2022-07-06 11:17:52 +03:00
Motiejus Jakštys 9f69a972ee analyze: show begin/end 2022-07-06 11:16:20 +03:00
Motiejus Jakštys 09de309b6e turbo-analyze now shows something 2022-07-06 10:23:46 +03:00
Motiejus Jakštys 601b1b4a6e split calculation of lengths and offsets 2022-07-06 08:42:15 +03:00
Motiejus Jakštys 65b0fa774d wip: turbo-analyze 2022-07-05 09:09:32 +03:00
Motiejus Jakštys 84eb2ca6f0 change allocator to raw_c_allocator 2022-07-05 06:03:25 +03:00