summaryrefslogtreecommitdiff
path: root/apt-inst/contrib/extracttar.cc
diff options
context:
space:
mode:
authorMichael Vogt <egon@bottom>2006-07-25 13:20:17 +0200
committerMichael Vogt <egon@bottom>2006-07-25 13:20:17 +0200
commit1fa25c1f17a290e497a49cb310511b4b58c9c009 (patch)
tree77edf875425da4bb35389fa3b0b8f6c1e0cf0348 /apt-inst/contrib/extracttar.cc
parent67fefcfec18c9ada43a07e5fffae6b3a5c693388 (diff)
parenta9be43ff002473c6a4c5197ba3767ee938ae3ed1 (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);