Manager: Cut off working directory from error message

This commit is contained in:
Riyyi
2022-01-24 00:29:50 +01:00
parent 50c859fd34
commit bf02122d2d
+2 -1
View File
@@ -174,7 +174,8 @@ void Dotfile::sync(const std::vector<std::string>& paths, const std::vector<size
bool root = !geteuid() ? true : false;
if (!systemIndices.empty() && !root) {
for (size_t i : systemIndices) {
fprintf(stderr, "\033[31;1mDotfile:\033[0m needs root privileges to copy system file '%s'\n", paths.at(i).c_str());
fprintf(stderr, "\033[31;1mDotfile:\033[0m need root privileges to copy system file '%s'\n",
paths.at(i).c_str() + s_workingDirectorySize);
}
return;
}