/* */
void pkgAcqMethod::DropPrivsOrDie()
{
- if (!DropPrivs()) {
+ if (!DropPrivileges()) {
Fail(false);
exit(112); /* call the european emergency number */
}
return true;
}
-bool DropPrivs()
+bool DropPrivileges()
{
// uid will be 0 in the end, but gid might be different anyway
uid_t old_uid = getuid();
*
* \return true on success, false on failure with _error set
*/
-bool DropPrivs();
+bool DropPrivileges();
// File string manipulators
std::string flNotDir(std::string File);
return 0;
}
// we really don't need anything
- DropPrivs();
+ DropPrivileges();
FILE* input = fdopen(STDIN_FILENO, "r");
FILE* output = fopen("/tmp/dump.edsp", "w");
{0,0,0,0}};
// we really don't need anything
- DropPrivs();
+ DropPrivileges();
CommandLine CmdL(Args,_config);
if (pkgInitConfig(*_config) == false ||