]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/home/homectl.c
homectl: make sure we sent the full 8 bytes as flags
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 20 Feb 2024 21:38:42 +0000 (22:38 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 21 Feb 2024 10:14:51 +0000 (10:14 +0000)
commit8f0dbbd7584f6caa898c60e63bca15a354f3857d
tree1a272d6691d372cf2e04c729aada3aaa3b720bc3
parent3c6d9d1c3972f0577cc22ddb0cab5995a3f96776
homectl: make sure we sent the full 8 bytes as flags

Otherwise weird stuff happens on the other side:

[1217111.957263] testsuite-46.sh[61]: + homectl create test-user --disk-size=min --luks-discard=yes --image-path=/home/test-user.home --luks-pbkdf-type=pbkdf2 --luks-pbkdf-time-cost=1ms
[1217112.598219] homectl[66]: Operation on home test-user failed: Provided flags are unsupported (0ad2578000000000).

(taken from TEST-46-HOME run on armv7l)

Fixes issue mentioned in https://github.com/systemd/systemd/pull/31419#issuecomment-1955117397.
src/home/homectl.c