Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488710 - sys-apps/openrc: rc-status doesn't process '.' or '..' input parameters properly
Summary: sys-apps/openrc: rc-status doesn't process '.' or '..' input parameters properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 481182
  Show dependency tree
 
Reported: 2013-10-20 11:41 UTC by Coacher
Modified: 2013-10-21 19:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Coacher 2013-10-20 11:41:44 UTC
Hello.

rc-status manpage says that passing runlevel name to rc-status should result in printing services on the given runlevel. If runlevel doesn't exist an error message is printed.

However, running `rc-status .` will output more or less same info as `rc-status -a`. And it is shouldn't be like that as there is now such runlevel as '.'. 

Another exmaple is `rc-status ..` which prints meaningless info as well as constructions of type `rc-status ../../sbin` and so on. Clearly, these expressions ('.', '..') shouldn't be processed at all and should be followed by error message immediately.

Please fix.

Reproducible: Always

Steps to Reproduce:
1. run `rc-status .` or `rc-status ..`
Actual Results:  
Some output being printed

Expected Results:  
Error message should be printed.
Comment 1 William Hubbs gentoo-dev 2013-10-21 19:55:56 UTC
This is fixed in commit aeb670f and will be part of OpenRC-0.13.
Thanks for the report.