summaryrefslogtreecommitdiff
path: root/password-buffer.c
AgeCommit message (Collapse)Author
2025-03-18Define _POSIX_C_SOURCE globallySimon Ser
Other Sway projects have switched to this approach.
2023-11-17Fix retry behaviour in while loop with mlock()Max Kunzelmann
If mlock() fails with errno EAGAIN, it should be retried up to five times, which is tracked in the retries variable. However, the `return false` statement after the switch case makes the function return false after the first failed mlock() call. Remove this statement to actually retry up to five times. Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
2022-06-15Use mlock for password bufferRobin Ebert