Browse Source

Rename DropPrivs() to DropPrivileges()

Git-Dch: ignore
debian/1.8.y
Michael Vogt 8 years ago
parent
commit
373fa2b4b2
  1. 2
      apt-pkg/acquire-method.cc
  2. 2
      apt-pkg/contrib/fileutl.cc
  3. 2
      apt-pkg/contrib/fileutl.h
  4. 2
      cmdline/apt-dump-solver.cc
  5. 2
      cmdline/apt-internal-solver.cc

2
apt-pkg/acquire-method.cc

@ -124,7 +124,7 @@ void pkgAcqMethod::Fail(string Err,bool Transient)
/* */
void pkgAcqMethod::DropPrivsOrDie()
{
if (!DropPrivs()) {
if (!DropPrivileges()) {
Fail(false);
exit(112); /* call the european emergency number */
}

2
apt-pkg/contrib/fileutl.cc

@ -2171,7 +2171,7 @@ bool Popen(const char* Args[], FileFd &Fd, pid_t &Child, FileFd::OpenMode Mode)
return true;
}
bool DropPrivs()
bool DropPrivileges()
{
// uid will be 0 in the end, but gid might be different anyway
uid_t old_uid = getuid();

2
apt-pkg/contrib/fileutl.h

@ -210,7 +210,7 @@ bool StartsWithGPGClearTextSignature(std::string const &FileName);
*
* \return true on success, false on failure with _error set
*/
bool DropPrivs();
bool DropPrivileges();
// File string manipulators
std::string flNotDir(std::string File);

2
cmdline/apt-dump-solver.cc

@ -41,7 +41,7 @@ int main(int argc,const char *argv[]) /*{{{*/
return 0;
}
// we really don't need anything
DropPrivs();
DropPrivileges();
FILE* input = fdopen(STDIN_FILENO, "r");
FILE* output = fopen("/tmp/dump.edsp", "w");

2
cmdline/apt-internal-solver.cc

@ -77,7 +77,7 @@ int main(int argc,const char *argv[]) /*{{{*/
{0,0,0,0}};
// we really don't need anything
DropPrivs();
DropPrivileges();
CommandLine CmdL(Args,_config);
if (pkgInitConfig(*_config) == false ||

Loading…
Cancel
Save