diff options
author | 2017-01-16 01:05:05 +0200 | |
---|---|---|
committer | 2017-01-16 01:05:05 +0200 | |
commit | 138bcd0cfae78ced64b98274adf6531d3161d828 (patch) | |
tree | b1dcac22e3b5b7f4da6155598c66681608936c5b /sway | |
parent | Merge pull request #1024 from willakat/master (diff) | |
download | sway-138bcd0cfae78ced64b98274adf6531d3161d828.tar.gz sway-138bcd0cfae78ced64b98274adf6531d3161d828.tar.zst sway-138bcd0cfae78ced64b98274adf6531d3161d828.zip |
Unset LD_LIBRARY_PATH, unless specified
Diffstat (limited to 'sway')
-rw-r--r-- | sway/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c index 7bf71b53..1c4c56c0 100644 --- a/sway/main.c +++ b/sway/main.c | |||
@@ -214,7 +214,11 @@ int main(int argc, char **argv) { | |||
214 | 214 | ||
215 | // Security: | 215 | // Security: |
216 | unsetenv("LD_PRELOAD"); | 216 | unsetenv("LD_PRELOAD"); |
217 | #ifdef _LD_LIBRARY_PATH | ||
217 | setenv("LD_LIBRARY_PATH", _LD_LIBRARY_PATH, 1); | 218 | setenv("LD_LIBRARY_PATH", _LD_LIBRARY_PATH, 1); |
219 | #else | ||
220 | unsetenv("LD_LIBRARY_PATH"); | ||
221 | #endif | ||
218 | 222 | ||
219 | int c; | 223 | int c; |
220 | while (1) { | 224 | while (1) { |