<feed xmlns='http://www.w3.org/2005/Atom'>
<title>swaylock/.git, branch v1.8.1</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/'/>
<entry>
<title>build: bump version to 1.8.1</title>
<updated>2025-03-20T11:38:37+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2025-03-20T11:38:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=9bdf4b28496462df1cc4943ee5a0e9b5df4fe312'/>
<id>9bdf4b28496462df1cc4943ee5a0e9b5df4fe312</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Assert that password buffer is NULL-terminated</title>
<updated>2025-03-18T21:31:44+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2025-03-12T07:36:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=429e860a37daf096a136c5ae5d28271aaf99b6ac'/>
<id>429e860a37daf096a136c5ae5d28271aaf99b6ac</id>
<content type='text'>
read_comm_request() just copies bytes around. handle_conversation()
relies on the fact that the password buffer is NULL-terminated.
Make sure that's the case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
read_comm_request() just copies bytes around. handle_conversation()
relies on the fact that the password buffer is NULL-terminated.
Make sure that's the case.
</pre>
</div>
</content>
</entry>
<entry>
<title>build: use cc.get_supported_arguments() for warnings</title>
<updated>2025-03-18T21:31:01+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2025-03-18T21:24:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=f18bc29ebe27397bebeeafb1c467f53179c72f81'/>
<id>f18bc29ebe27397bebeeafb1c467f53179c72f81</id>
<content type='text'>
Let's not require the C compiler to support specific warnings,
especially if half the flags are used to turn off the warnings
anyways.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Let's not require the C compiler to support specific warnings,
especially if half the flags are used to turn off the warnings
anyways.
</pre>
</div>
</content>
</entry>
<entry>
<title>Define _POSIX_C_SOURCE globally</title>
<updated>2025-03-18T21:31:01+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2025-03-18T21:23:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=0b10244dc09c7108e7046700a4cd0a64dde57380'/>
<id>0b10244dc09c7108e7046700a4cd0a64dde57380</id>
<content type='text'>
Other Sway projects have switched to this approach.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Other Sway projects have switched to this approach.
</pre>
</div>
</content>
</entry>
<entry>
<title>Reapply "comm: improve robustness"</title>
<updated>2025-03-16T16:49:49+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2025-03-15T00:13:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=3415a7c9c10e6f5dace06cd222edd825e41e771d'/>
<id>3415a7c9c10e6f5dace06cd222edd825e41e771d</id>
<content type='text'>
This reverts commit e0ca5adecd0b0f89f20322c9b410b460e8f73c5b.

See 285d0292914b ("comm: improve robustness") for details.

Also add EINTR handling.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit e0ca5adecd0b0f89f20322c9b410b460e8f73c5b.

See 285d0292914b ("comm: improve robustness") for details.

Also add EINTR handling.
</pre>
</div>
</content>
</entry>
<entry>
<title>Only submit password if previous validation completed</title>
<updated>2025-03-16T15:13:09+00:00</updated>
<author>
<name>Manuel Stoeckl</name>
<email>code@mstoeckl.com</email>
</author>
<published>2024-09-17T16:57:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=65f3eb349259d571397e5ab769dc5f524966c212'/>
<id>65f3eb349259d571397e5ab769dc5f524966c212</id>
<content type='text'>
This averts the risk that one can queue up many password submissions
by pressing enter repeatedly (or with key repeat, holding enter),
much more quickly than PAM will process them. It may also improve
usability by reducing unrevealed system state: now that at most one
password can be queued, the "Verifying" message is always shown when
a password is being validated.

However, this commit does introduce a minor UI issue: if one types
an invalid second password just slightly faster than PAM validation
completes, it may fail to submit, and the signs of this may be hard
to notice (state transition timing, presence of keypress indicator,
and (if enabled) attempt count).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This averts the risk that one can queue up many password submissions
by pressing enter repeatedly (or with key repeat, holding enter),
much more quickly than PAM will process them. It may also improve
usability by reducing unrevealed system state: now that at most one
password can be queued, the "Verifying" message is always shown when
a password is being validated.

However, this commit does introduce a minor UI issue: if one types
an invalid second password just slightly faster than PAM validation
completes, it may fail to submit, and the signs of this may be hard
to notice (state transition timing, presence of keypress indicator,
and (if enabled) attempt count).
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "comm: improve robustness"</title>
<updated>2025-03-15T00:12:50+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2025-03-15T00:12:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=e0ca5adecd0b0f89f20322c9b410b460e8f73c5b'/>
<id>e0ca5adecd0b0f89f20322c9b410b460e8f73c5b</id>
<content type='text'>
This reverts commit 285d0292914bf6361a1a32ce1561a6d3fb6ebeca.

This got accidentally pushed to master.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 285d0292914bf6361a1a32ce1561a6d3fb6ebeca.

This got accidentally pushed to master.
</pre>
</div>
</content>
</entry>
<entry>
<title>comm: improve robustness</title>
<updated>2025-03-14T22:49:37+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2025-03-14T22:49:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=285d0292914bf6361a1a32ce1561a6d3fb6ebeca'/>
<id>285d0292914bf6361a1a32ce1561a6d3fb6ebeca</id>
<content type='text'>
swaylock was performing some read() calls with a &gt;1 size and didn't
handle partial reads. Fix this by introducing two helpers, read_full()
and write_full(), to read/write a complete buffer.

read_comm_request() needs to make the difference between EOF at the
start of a message vs. in the middle, so needs to return a tri-state.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
swaylock was performing some read() calls with a &gt;1 size and didn't
handle partial reads. Fix this by introducing two helpers, read_full()
and write_full(), to read/write a complete buffer.

read_comm_request() needs to make the difference between EOF at the
start of a message vs. in the middle, so needs to return a tri-state.
</pre>
</div>
</content>
</entry>
<entry>
<title>Better handle subprocess crashes</title>
<updated>2025-03-12T10:17:13+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2025-03-12T00:31:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=34e0aabc51074a2476d27148c4f755d558da3ec9'/>
<id>34e0aabc51074a2476d27148c4f755d558da3ec9</id>
<content type='text'>
On my machine EOF doesn't trigger POLLHUP (not sure why), instead
read() returns zero. It just prints the following message in a
loop:

    [comm.c:101] Failed to read pw result: Success

Better handle this case in read_comm_reply() by making a difference
between a failed read() and a failed authentication.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On my machine EOF doesn't trigger POLLHUP (not sure why), instead
read() returns zero. It just prints the following message in a
loop:

    [comm.c:101] Failed to read pw result: Success

Better handle this case in read_comm_reply() by making a difference
between a failed read() and a failed authentication.
</pre>
</div>
</content>
</entry>
<entry>
<title>Check if keymap is NULL before dereferencing</title>
<updated>2025-01-29T10:04:00+00:00</updated>
<author>
<name>Mikkel Stårvik</name>
<email>mikkel.starvik@gmail.com</email>
</author>
<published>2025-01-28T08:34:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.prezmop.xyz/swaylock/.git/commit/?id=a439abb8c991de1c5bbc8d5c105b56599abb9e06'/>
<id>a439abb8c991de1c5bbc8d5c105b56599abb9e06</id>
<content type='text'>
This avoids segfaulting when a frame is rendered before a keymap has been received, which happens consistently on some systems when swaylock is started after starting the suspend process
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This avoids segfaulting when a frame is rendered before a keymap has been received, which happens consistently on some systems when swaylock is started after starting the suspend process
</pre>
</div>
</content>
</entry>
</feed>
