Description of problem: When you try to install a package and pass an empty string for the package name, rpm prints an error message on STDERR but returns a status of 0. It should either not print an error, or return 1. Version-Release number of selected component (if applicable): rpm-4.4.2-47.el5 How reproducible: Always Steps to Reproduce: Where "ksjkjdksjdkjsd" is a file which doesn't exist, as root: 1. rpm -i "ksjkjdksjdkjsd.rpm"; echo "Return: $?" 2. rpm -i ""; echo "Return: $?" Actual results: 1. rpm -i "klkskdlsklks"; echo "Return: $?" error: open of klkskdlsklks failed: No such file or directory Return: 1 2. rpm -i ""; echo "Return: $?" error: File not found by glob: Return: 0 Expected results: 1. rpm -i "klkskdlsklks"; echo "Return: $?" error: open of klkskdlsklks failed: No such file or directory Return: 1 2. rpm -i ""; echo "Return: $?" error: File not found by glob: Return: 0 Additional info: If the usage case in 2 is an error, it should not return 0. If it is not an error, it should not say that it is an error.
Argh, expected results is wrong - in step 2 it should read: Return: 1
*** This bug has been marked as a duplicate of bug 463944 ***