]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/fileio.h
journalctl: use _COMM= match for scripts
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Jul 2013 08:02:50 +0000 (04:02 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 26 Jul 2013 16:16:57 +0000 (12:16 -0400)
commit68fee104e630eb19f04b8196a83c14c2c9c469e7
tree61588d5747fd6ee0288fc2bf939d4d91a8a4eea0
parentcba38758b4d49c6fe7c2f0eea255e11ee9df23eb
journalctl: use _COMM= match for scripts

In case of scripts, _EXE is set to the interpreter name, and
_COMM is set based on the file name. Add a match for _COMM,
and _EXE if the interpreter is not a link (e.g. for yum,
the interpreter is /usr/bin/python, but it is a link to
/usr/bin/python2, which in turn is a link to /usr/bin/python2.7,
at least on Fedora, so we end up with _EXE=/usr/bin/python2.7).
I don't think that such link chasing makes sense, because
the final _EXE name is more likely to change.
src/journal/journalctl.c
src/shared/fileio.c
src/shared/fileio.h
src/test/test-fileio.c