[Bug 808980] New: rc.status fails to correctly redirect links starting with 'rc' (e.g. rckdm)
https://bugzilla.novell.com/show_bug.cgi?id=808980 https://bugzilla.novell.com/show_bug.cgi?id=808980#c0 Summary: rc.status fails to correctly redirect links starting with 'rc' (e.g. rckdm) Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: joschibrauchle@gmx.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.160 Safari/537.22 On openSUSE 12.3, running yield: --------- # rckdm status Checking for service kdm: running rcxdm.service Loaded: error (Reason: No such file or directory) Active: inactive (dead) --------- The reason is that --------- # l `which rckdm` lrwxrwxrwx 1 root root 5 Feb 28 14:15 /usr/sbin/rckdm -> rcxdm* --------- and then in /etc/rc.status: --------- case "$0" in /etc/init.d/boot.*) _rc_base=${0##*/boot.} ;; /etc/init.d/*|/etc/rc.d/*) _rc_base=${0##*/} ;; */rc*) if test -L "$0"; then ## <-- processing links _rc_base=`readlink "$0"` _rc_base=${_rc_base##*/} case "$_rc_base" in boot.*) _rc_base=${_rc_base#boot.} esac else _rc_base=${0##*/rc} ## <-- dropping 'rc' prefix from files but not links fi ;; esac --------- does not capture a link that also starts with 'rc'. Reproducible: Always Steps to Reproduce: 1. rckdm status -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808980 https://bugzilla.novell.com/show_bug.cgi?id=808980#c1 --- Comment #1 from Joschi Brauchle <joschibrauchle@gmx.de> 2013-03-12 17:38:01 UTC --- This patch would fix it: --- a/etc/rc.status 2013-03-12 18:36:37.422052010 +0100 +++ b/etc/rc.status 2013-02-06 13:22:19.000000000 +0100 @@ -46,8 +46,7 @@ _rc_base=`readlink "$0"` _rc_base=${_rc_base##*/} case "$_rc_base" in - boot.*) _rc_base=${_rc_base#boot.} + boot.*) _rc_base=${_rc_base#boot.};; + rc*) _rc_base=${_rc_base#rc};; esac else _rc_base=${0##*/rc} -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808980 https://bugzilla.novell.com/show_bug.cgi?id=808980#c Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-beta@cboltz.de AssignedTo|bnc-team-screening@forge.pr |ro@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808980 https://bugzilla.novell.com/show_bug.cgi?id=808980#c2 Ruediger Oertel <ro@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |werner@suse.com InfoProvider| |lnussel@suse.com --- Comment #2 from Ruediger Oertel <ro@suse.com> 2014-09-11 11:47:46 UTC --- ludwig,werner: what do you think -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808980 https://bugzilla.novell.com/show_bug.cgi?id=808980#c3 --- Comment #3 from Dr. Werner Fink <werner@suse.com> 2014-09-11 12:12:45 UTC --- I do not have a symlink rckdm here and the command rcxdm status does its job very well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808980 https://bugzilla.novell.com/show_bug.cgi?id=808980#c4 --- Comment #4 from Dr. Werner Fink <werner@suse.com> 2014-09-11 12:18:54 UTC --- An other problem could be that if a servcice starts with the two letter `rc' and is not a service script link it could also cause trouble ... maybe the line _rc_base=`readlink "$0"` should become _rc_base=`readlink -e "$0"` -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=808980 https://bugzilla.novell.com/show_bug.cgi?id=808980#c5 Ludwig Nussel <lnussel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|lnussel@suse.com | --- Comment #5 from Ludwig Nussel <lnussel@suse.com> 2014-09-12 13:36:38 CEST --- microoptimization for sysvinit which is obsolete anyways. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com