launch_daemon: Remove extra quoting around env variables.
The extra quotes aren't needed and cause problems when not parsed through a shell. For example LD_PRELOAD which is handled by the runtime_loader directly failed to work as there was no way to remove the extra single quotes. Note that quotes and single quotes can still be added to the variables through respective quoting in the driver settings syntax.
This commit is contained in:
@@ -151,7 +151,7 @@ BaseJob::SetEnvironment(const BMessage& message)
|
||||
}
|
||||
|
||||
BString variable = name;
|
||||
variable << "='";
|
||||
variable << "=";
|
||||
|
||||
const char* argument;
|
||||
for (int32 argumentIndex = 0; message.FindString(name, argumentIndex,
|
||||
@@ -160,7 +160,6 @@ BaseJob::SetEnvironment(const BMessage& message)
|
||||
variable << " ";
|
||||
variable += argument;
|
||||
}
|
||||
variable << "'";
|
||||
|
||||
fEnvironment.Add(variable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user