Skip to content

Commit af92dae

Browse files
halflinekeszybz
authored andcommitted
man: fix LD_LIBRARY_PATH example in environment.d (systemd#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.
1 parent 61b2f19 commit af92dae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

man/environment.d.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<programlisting>
105105
FOO_DEBUG=force-software-gl,log-verbose
106106
PATH=/opt/foo/bin:$PATH
107-
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}/opt/foo/lib
107+
LD_LIBRARY_PATH=/opt/foo/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
108108
XDG_DATA_DIRS=/opt/foo/share:${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}
109109
</programlisting>
110110
</example>

0 commit comments

Comments
 (0)