]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-dump-solver.cc
provide public interface to hold/unhold packages
[apt.git] / cmdline / apt-dump-solver.cc
index 2e352931fd0c47eef8b46a89caa23904da04f7e6..47b515be5cb70abbd6c8ad63e7495bb8c1e94211 100644 (file)
@@ -53,7 +53,8 @@ int main(int argc,const char *argv[])                                 /*{{{*/
           return 0;
        }
 
-       unlink(filename);
+       if (strcmp(filename, "/dev/null") != 0)
+          unlink(filename);
        FileFd input, output;
        if (input.OpenDescriptor(STDIN_FILENO, FileFd::ReadOnly) == false ||
              output.Open(filename, FileFd::WriteOnly | FileFd::Create | FileFd::Exclusive, 0600) == false ||