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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user