This commit is contained in:
2024-08-23 14:13:46 -05:00
parent 989c90bc8d
commit 953684f5a6

View File

@ -510,7 +510,7 @@ api_error remote_fuse_drive::statfs_x_impl(std::string api_path,
stbuf->f_files = r.f_files; stbuf->f_files = r.f_files;
stbuf->f_owner = getuid(); stbuf->f_owner = getuid();
strncpy(&stbuf->f_mntonname[0U], get_mount_location().c_str(), MNAMELEN); strncpy(&stbuf->f_mntonname[0U], get_mount_location().c_str(), MNAMELEN);
strncpy(stbuf->f_mntfromname.data(), &r.f_mntonname[0U], MNAMELEN); strncpy(&stbuf->f_mntfromname[0U], &r.f_mntfromname[0U], MNAMELEN);
} }
} else { } else {
res = -errno; res = -errno;