package daemon: ExtractPackageContent(): Extract only requested

... content path.
This commit is contained in:
Ingo Weinhold 2013-10-10 21:48:52 +02:00
parent 302a8fc86e
commit e3555ffae4

View File

@ -215,7 +215,9 @@ FSUtils::ExtractPackageContent(const char* packagePath, const char* contentPath,
std::string commandLine = std::string("package extract -C ")
+ ShellEscapeString(targetDirectoryPath).String()
+ " "
+ ShellEscapeString(packagePath).String();
+ ShellEscapeString(packagePath).String()
+ " "
+ ShellEscapeString(contentPath).String();
if (system(commandLine.c_str()) != 0)
return B_ERROR;
return B_OK;