summaryrefslogtreecommitdiffstats
path: root/man/environment.d.xml
diff options
context:
space:
mode:
authorRay Strode <halfline@gmail.com>2017-05-11 04:23:54 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-11 04:23:54 +0200
commitaf92daebc593eb4865e1a1e6fcd560cf36d278e9 (patch)
treedd24e6b10bc4e98d0faac4f64e17d2a46604858a /man/environment.d.xml
parentudev: don't allow pointing stick sensitivities greater than 255 (#5927) (diff)
downloadsystemd-af92daebc593eb4865e1a1e6fcd560cf36d278e9.tar.xz
systemd-af92daebc593eb4865e1a1e6fcd560cf36d278e9.zip
man: fix LD_LIBRARY_PATH example in environment.d (#5929)
The example for LD_LIBRARY_PATH in the environment.d man page is wrong. When setting LD_LIBRARY_PATH, the new directory usually needs to be at the front so it overrides old directories. In the example, the colon delimiter is correctly prepended to the front, but the actual new path is erroneously appended to the end. This commit moves it to the front where it belongs.
Diffstat (limited to 'man/environment.d.xml')
-rw-r--r--man/environment.d.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/man/environment.d.xml b/man/environment.d.xml
index 78b949160b..ad9db1666f 100644
--- a/man/environment.d.xml
+++ b/man/environment.d.xml
@@ -104,7 +104,7 @@
<programlisting>
FOO_DEBUG=force-software-gl,log-verbose
PATH=/opt/foo/bin:$PATH
- LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}/opt/foo/lib
+ LD_LIBRARY_PATH=/opt/foo/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
XDG_DATA_DIRS=/opt/foo/share:${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}
</programlisting>
</example>