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:
Michael Lotz
2015-08-23 15:17:39 +02:00
parent 8b9bb054f4
commit f11d686c96
+1 -2
View File
@@ -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);
}