]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-blockdev-util: avoid abort when /home is a symlink
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 25 Oct 2023 16:19:35 +0000 (17:19 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 26 Oct 2023 13:46:15 +0000 (14:46 +0100)
commit6aa77f9284070229f73063e15cb4b4aa59cb6020
tree63c52d0ca251a7eda3b46f8d4a0816b90a1321f5
parent76f2191d8eb54d7b9e39ab230c9c62b8a8c42265
test-blockdev-util: avoid abort when /home is a symlink

On rpm-ostree distributions like Fedora SilverBlue /home (and various
other well known locations) are symlinks to somewhere beneath /var.

The path_is_encrypted() method uses O_NOFOLLOW and as a result will
return ELOOP on /home. This causes test-blockdev-util to abort.
Add ELOOP to the ignorable set of errnos for testing.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/test/test-blockdev-util.c