X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3lock.c;h=87a77b1d004270a73ba74595765300716437bb6b;hb=5ab19daa5cd3ebb63ecc389fb7d5420e91f8d799;hp=01f0436a1de6569689df2db980d3fbe588284d34;hpb=0bed914e8eccb5d62cb12de4b26541b7441c94dc;p=i3%2Fi3lock diff --git a/i3lock.c b/i3lock.c index 01f0436..87a77b1 100644 --- a/i3lock.c +++ b/i3lock.c @@ -919,12 +919,12 @@ int main(int argc, char *argv[]) { errx(EXIT_FAILURE, "PAM: %s", pam_strerror(pam_handle, ret)); #endif -/* Using mlock() as non-super-user seems only possible in Linux and OpenBSD. +/* Using mlock() as non-super-user seems only possible in Linux. * Users of other operating systems should use encrypted swap/no swap * (or remove the ifdef and run i3lock as super-user). - * NB: Alas, swap is encrypted by default on OpenBSD so swapping out + * Alas, swap is encrypted by default on OpenBSD so swapping out * is not necessarily an issue. */ -#if defined(__linux__) || defined(__OpenBSD__) +#if defined(__linux__) /* Lock the area where we store the password in memory, we don’t want it to * be swapped to disk. Since Linux 2.6.9, this does not require any * privileges, just enough bytes in the RLIMIT_MEMLOCK limit. */