mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
cups: fix pam configuration file's permission
The files under /etc/pam.d should be 0644. The /etc/pam.d/cups file has 0444 after 'make install'. This patch fixes this problem. (From OE-Core rev: ba510849a8bc238997b6d1669300e24c46bcf328) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -64,6 +64,11 @@ do_install () {
|
||||
rm -fr ${D}/${localstatedir}/run
|
||||
rmdir ${D}/${libdir}/${BPN}/driver
|
||||
|
||||
# Fix the pam configuration file permissions
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then
|
||||
chmod 0644 ${D}${sysconfdir}/pam.d/cups
|
||||
fi
|
||||
|
||||
# Remove sysinit script and symlinks if sysvinit is not in DISTRO_FEATURES
|
||||
if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','false','true',d)}; then
|
||||
rm -rf ${D}${sysconfdir}/init.d/
|
||||
|
||||
Reference in New Issue
Block a user