1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

login/user-runtime-dir: properly check for mount point

This commit is contained in:
Mike Yuan 2024-02-05 04:53:14 +08:00
parent 9ca13d60db
commit 561d879305
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

View File

@ -67,7 +67,7 @@ static int user_mkdir_runtime_path(
if (r < 0)
return log_error_errno(r, "Failed to create /run/user: %m");
if (path_is_mount_point(runtime_path, NULL, 0) >= 0)
if (path_is_mount_point(runtime_path, NULL, 0) > 0)
log_debug("%s is already a mount point", runtime_path);
else {
char options[sizeof("mode=0700,uid=,gid=,size=,nr_inodes=,smackfsroot=*")