Commit Graph

9 Commits

Author SHA1 Message Date
2f04ea0952 Replace the shell process with actual program 2023-05-26 11:11:32 +02:00
642f8fdfdb Handle the ENOENT error 2023-05-26 10:55:40 +02:00
743d241080 Use a variant of strlcpy to avoid unnecessary padding
The GNU/Linux implementation of getlogin_r does not pad with zeroes for
the rest of the buffer. When the bufsize is insufficient, it does not
touch the buffer at all, but this divergent behavior is fine for now.
2023-05-26 10:39:43 +02:00
9d0cae9372 Implement getlogin(3) 2023-05-26 09:49:31 +02:00
b37c4c5eb7 Add proper error handling 2023-05-17 10:13:37 +02:00
7cb36fee4d Cleanup Makefile 2023-04-25 09:39:40 +02:00
b92134ed11 Pass any username by env variable 2023-04-24 16:01:46 +02:00
48c1ebb8de Lower C version requirement 2023-04-21 09:28:28 +02:00
99bb308e2c Initial commit 2023-04-20 19:12:27 +02:00