We need this field not only during activation but any kind of setup,
hence let's move it into the setup code.
return 0;
}
+ if (!h->cifs_service)
+ return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "User record lacks CIFS service, refusing.");
+
r = home_unshare_and_mkdir();
if (r < 0)
return r;
assert(setup);
assert(ret_home);
- if (!h->cifs_service)
- return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "User record lacks CIFS service, refusing.");
-
assert_se(hdo = user_record_home_directory(h));
hd = strdupa_safe(hdo); /* copy the string out, since it might change later in the home record object */