[gnome-games] lightsoff, swell-foop: Really safely set LD_LIBRARY_PATH
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] lightsoff, swell-foop: Really safely set LD_LIBRARY_PATH
- Date: Wed, 5 Jan 2011 12:22:04 +0000 (UTC)
commit 8440a7098ea14d26d34f1998935328205cb5b6f6
Author: Vincent Untz <vuntz gnome org>
Date: Wed Jan 5 10:22:22 2011 +0100
lightsoff, swell-foop: Really safely set LD_LIBRARY_PATH
This is a follow-up to commit c82181c6: if $LD_LIBRARY_PATH is set but
empty, we were still adding a trailing :.
Fixes CVE-2010-4003.
https://bugzilla.gnome.org/show_bug.cgi?id=638729
lightsoff/src/lightsoff.in | 2 +-
swell-foop/swell-foop.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lightsoff/src/lightsoff.in b/lightsoff/src/lightsoff.in
index a424080..daff9e5 100644
--- a/lightsoff/src/lightsoff.in
+++ b/lightsoff/src/lightsoff.in
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
-export LD_LIBRARY_PATH="%pkglibdir%${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
+export LD_LIBRARY_PATH="%pkglibdir%${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
/usr/bin/env seed %pkgdatadir%/lightsoff/main.js
diff --git a/swell-foop/swell-foop.in b/swell-foop/swell-foop.in
index 613c557..ccfca41 100644
--- a/swell-foop/swell-foop.in
+++ b/swell-foop/swell-foop.in
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
-export LD_LIBRARY_PATH="%pkglibdir%${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
+export LD_LIBRARY_PATH="%pkglibdir%${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
/usr/bin/env seed %pkgdatadir%/swell-foop/main.js
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]