X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fexternalaction.cpp;h=5d01f4f701071fd4b330b26618b897899a59110d;hb=a2adbd9c0a8d7a7567848c4c6bdbf0de6ba32bb1;hp=bde453f8c18b7321d0835ad54ce3913f93e0dfce;hpb=7aeaa4ba965f596edad438c02e345a8843f7469a;p=builder.git diff --git a/source/externalaction.cpp b/source/externalaction.cpp index bde453f..5d01f4f 100644 --- a/source/externalaction.cpp +++ b/source/externalaction.cpp @@ -7,6 +7,9 @@ Distributed under the LGPL #include #include +#include +#include +#include #include "builder.h" #include "externalaction.h" @@ -69,6 +72,8 @@ void ExternalAction::launch() argv_[j++]=strdup(i->c_str()); argv_[j]=0; + if(!work_dir.empty()) + FS::chdir(work_dir); execvp(argv_[0], argv_); cout<<"Couldn't execute "<