Browse Source

Manager: Cut off working directory from error message

master
Riyyi 3 years ago
parent
commit
bf02122d2d
  1. 3
      src/dotfile.cpp

3
src/dotfile.cpp

@ -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;
}

Loading…
Cancel
Save