Skip to content
Commit cd169432 authored by Martin Pitt's avatar Martin Pitt Committed by Zbigniew Jędrzejewski-Szmek
Browse files

sysv-generator: Handle .sh suffixes when translating Provides:

When deciding whether the provided name equals the file name in
sysv_translate_facility(), also consider them equal if the file name has a
".sh" suffix.

This was uncovered by commit b7e71846 which then created a symlink
"<name>.service" to itself for ".sh" suffixed init.d scripts.

For additional robustness, refuse to create symlinks to itself in add_alias().

Add test case which reproduces the bug.

https://bugs.debian.org/775889
(cherry picked from commit 29e0e6d8)

Conflicts:
	test/sysv-generator-test.py
parent 260a413d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment