Bug 24263

Summary: shebangs incorrectly added to files to be sourced
Product: Mageia Reporter: David Walser <luigiwalser>
Component: RPM PackagesAssignee: Martin Whitaker <mageia>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
See Also: https://bugs.mageia.org/show_bug.cgi?id=24198
Whiteboard:
Source RPM: dbus, xdg-compliance CVE:
Status comment:

Description David Walser 2019-01-30 19:19:38 CET
The change in dbus-1.13.8-2.mga7 and xdg-compliance-0.1-23.mga7 is incorrect.  Those files are sourced, not executed, and don't need executable permissions.  In fact, I think something greps them for the "to be sourced" to know to source them, but off the top of my head I'm not sure they won't do the wrong thing with the shebangs.  it might not be a problem, but it wasn't necessary at the least.
Comment 1 Martin Whitaker 2019-01-30 19:33:40 CET
See /etc/X11/Xsession. It checks that the files are executable, even when it sources them. Also see other files in /etc/X11/xinit.d that have both a shebang and a "# to be sourced".

If you want to change Xsession to work differently, go ahead. I prefer to tread cautiously.

Status: NEW => RESOLVED
Resolution: (none) => INVALID

Martin Whitaker 2019-01-30 19:49:34 CET

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=24198