cmdline/apt-get.cc: create the mkdtemp dir in /tmp
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 15 Nov 2010 12:54:47 +0000 (13:54 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 15 Nov 2010 12:54:47 +0000 (13:54 +0100)
cmdline/apt-get.cc

index cf4f1ab..53def38 100644 (file)
@@ -2819,7 +2819,7 @@ bool DoChangelog(CommandLine &CmdL)
 
    if (verset.empty() == true)
       return false;
-   char *tmpdir = mkdtemp(strdup("apt-changelog-XXXXXX"));
+   char *tmpdir = mkdtemp(strdup("/tmp/apt-changelog-XXXXXX"));
    if (tmpdir == NULL) {
       return _error->Errno("mkdtemp", "mkdtemp failed");
    }