]> git.saurik.com Git - apt.git/blobdiff - methods/gzip.cc
DropPrivs: Move the re-set uid/gid thing to the end of the function
[apt.git] / methods / gzip.cc
index 518e58f824604a6d5d2fc37009e7f38336ddd18e..7ffcda60f66cace2b11fceaad4cbbeb6521fa346 100644 (file)
@@ -135,11 +135,12 @@ int main(int, char *argv[])
 {
    setlocale(LC_ALL, "");
 
-   DropPrivs();
-
    Prog = strrchr(argv[0],'/');
    ++Prog;
 
    GzipMethod Mth;
+
+   Mth.DropPrivsOrDie();
+
    return Mth.Run();
 }