mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
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.
This commit is contained in:
parent
3c6d9d1c39
commit
8f0dbbd758
@ -1481,7 +1481,7 @@ static int create_home_common(JsonVariant *input) {
|
||||
if (r < 0)
|
||||
return bus_log_create_error(r);
|
||||
|
||||
r = sd_bus_message_append(m, "t", 0);
|
||||
r = sd_bus_message_append(m, "t", UINT64_C(0));
|
||||
if (r < 0)
|
||||
return bus_log_create_error(r);
|
||||
|
||||
@ -1777,7 +1777,7 @@ static int update_home(int argc, char *argv[], void *userdata) {
|
||||
if (r < 0)
|
||||
return bus_log_create_error(r);
|
||||
|
||||
r = sd_bus_message_append(m, "t", 0);
|
||||
r = sd_bus_message_append(m, "t", UINT64_C(0));
|
||||
if (r < 0)
|
||||
return bus_log_create_error(r);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user