Manager: Add fixme to user getlogin()

This commit is contained in:
Riyyi
2022-01-09 15:43:13 +01:00
parent 2af81120c3
commit d9f95f5332
+1
View File
@@ -181,6 +181,7 @@ void Dotfile::sync(const std::vector<std::string>& paths, const std::vector<size
// Get the password database record (/etc/passwd) of the user logged in on
// the controlling terminal of the process
// FIXME: Do error handling on these calls
passwd* user = getpwnam(getlogin());
auto printError = [](const std::filesystem::path& path, const std::error_code& error) -> void {