mirror of
https://github.com/systemd/systemd.git
synced 2025-03-29 06:50:16 +03:00
homed: make "register" call more friendly
Let's accept full user records (including status and so on) and simply eat up the parts we don't care about, instead of refusing the whole record wholesale. This makes it easier to just copy a user record from one machine and registering it at another, without stripping the irrelevant parts first.
This commit is contained in:
parent
a971e6603f
commit
06d77db6fb
@ -488,7 +488,7 @@ static int method_register_home(
|
||||
|
||||
assert(message);
|
||||
|
||||
r = bus_message_read_home_record(message, USER_RECORD_LOAD_EMBEDDED|USER_RECORD_PERMISSIVE, &hr, error);
|
||||
r = bus_message_read_home_record(message, USER_RECORD_EXTRACT_EMBEDDED|USER_RECORD_PERMISSIVE, &hr, error);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user