summaryrefslogtreecommitdiff
path: root/apt-inst/contrib/extracttar.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-08-01 15:45:39 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-08-01 15:45:39 +0200
commitc8d80b1d346c9c24f897813d5793e69bb59e465b (patch)
tree97fb9ca12c7de03839483e2998559d3f409871c9 /apt-inst/contrib/extracttar.cc
parent585b14f578b3f21d88e2c8f884df6468b5e0655f (diff)
parent80e2662eee5ac39d1dd402dd082d79be891dd98c (diff)
* merged with mainline
Diffstat (limited to 'apt-inst/contrib/extracttar.cc')
-rw-r--r--apt-inst/contrib/extracttar.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-inst/contrib/extracttar.cc b/apt-inst/contrib/extracttar.cc
index d6da802fe..062c06fa4 100644
--- a/apt-inst/contrib/extracttar.cc
+++ b/apt-inst/contrib/extracttar.cc
@@ -136,7 +136,8 @@ bool ExtractTar::StartGzip()
const char *Args[3];
string confvar = string("dir::bin::") + DecompressProg;
- Args[0] = _config->Find(confvar.c_str(),DecompressProg.c_str()).c_str();
+ string argv0 = _config->Find(confvar.c_str(),DecompressProg.c_str());
+ Args[0] = argv0.c_str();
Args[1] = "-d";
Args[2] = 0;
execvp(Args[0],(char **)Args);