diff options
| author | Mikhail Anikin <mikhail.anikin@solid-run.com> | 2026-02-12 11:07:40 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-02-16 00:34:01 -0800 |
| commit | 2296bdb6c1fa28f80761d9f119108568f9f00cda (patch) | |
| tree | 2251a78ec82cbdd2cb5eb84352e4026e47ed186c | |
| parent | bf898320ecda870c6d4baddd0c43098d7d39dd7f (diff) | |
| download | meta-openembedded-2296bdb6c1fa28f80761d9f119108568f9f00cda.tar.gz | |
rsyslog: fix incorrect install -d usage in do_install
The rsyslog recipe incorrectly passes the permission mode as a
positional argument to install -d. In this form, the value is treated
as a directory name rather than as a mode, which will create an additional directory
and may result in unexpected behavior during installation.
Use the -m option to ensure the directory is created with the intended
permissions.
Signed-off-by: Mikhail Anikin <mikhail.anikin@solid-run.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-extended/rsyslog/rsyslog_8.2512.0.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2512.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2512.0.bb index 63233fd278..c50a7a3f7a 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.2512.0.bb +++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.2512.0.bb | |||
| @@ -149,11 +149,11 @@ do_install:append() { | |||
| 149 | sed -i -e "s#@BINDIR@#${bindir}#g" ${D}${sysconfdir}/logrotate.d/logrotate.rsyslog | 149 | sed -i -e "s#@BINDIR@#${bindir}#g" ${D}${sysconfdir}/logrotate.d/logrotate.rsyslog |
| 150 | 150 | ||
| 151 | if ${@bb.utils.contains('PACKAGECONFIG', 'imjournal', 'true', 'false', d)}; then | 151 | if ${@bb.utils.contains('PACKAGECONFIG', 'imjournal', 'true', 'false', d)}; then |
| 152 | install -d 0755 ${D}${sysconfdir}/rsyslog.d | 152 | install -d -m 0755 ${D}${sysconfdir}/rsyslog.d |
| 153 | echo '$ModLoad imjournal' >> ${D}${sysconfdir}/rsyslog.d/imjournal.conf | 153 | echo '$ModLoad imjournal' >> ${D}${sysconfdir}/rsyslog.d/imjournal.conf |
| 154 | fi | 154 | fi |
| 155 | if ${@bb.utils.contains('PACKAGECONFIG', 'mmjsonparse', 'true', 'false', d)}; then | 155 | if ${@bb.utils.contains('PACKAGECONFIG', 'mmjsonparse', 'true', 'false', d)}; then |
| 156 | install -d 0755 ${D}${sysconfdir}/rsyslog.d | 156 | install -d -m 0755 ${D}${sysconfdir}/rsyslog.d |
| 157 | echo '$ModLoad mmjsonparse' >> ${D}${sysconfdir}/rsyslog.d/mmjsonparse.conf | 157 | echo '$ModLoad mmjsonparse' >> ${D}${sysconfdir}/rsyslog.d/mmjsonparse.conf |
| 158 | fi | 158 | fi |
| 159 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | 159 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
