This doesn't really matter too much as both are static functions. But
it's confusing as hell both when debugging and reading code, given that
homed actually uses mount-util.c
Hence, let's just rename one of the two, to minimize confusion.
No actual change in behaviour.
(and sooner or later we might want to export mount-util.c's version of
the function, since it's generically useful)
exclude + 1, exclude + 1, next_start - exclude - 1);
}
-static int make_userns(uid_t stored_uid, uid_t exposed_uid) {
+static int make_home_userns(uid_t stored_uid, uid_t exposed_uid) {
_cleanup_free_ char *text = NULL;
_cleanup_close_ int userns_fd = -EBADF;
int r;
return log_error_errno(errno, "Failed to open tree of home directory: %m");
}
- userns_fd = make_userns(stored_uid, exposed_uid);
+ userns_fd = make_home_userns(stored_uid, exposed_uid);
if (userns_fd < 0)
return userns_fd;