Commit Graph

6 Commits

Author SHA1 Message Date
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
b92134ed11 Pass any username by env variable 2023-04-24 16:01:46 +02:00
99bb308e2c Initial commit 2023-04-20 19:12:27 +02:00