Wind River Support Network


LIN6-9886 : rpm -qai for --root=some/invalid/path creates the directory instead of returning error if the path for --root does not exist

Created: May 13, 2015    Updated: Dec 3, 2018
Resolved Date: Jun 17, 2015
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace


When running the command rpm -qai --root=/<some>/<invalid>/<path>, the directory /<some>/<invalid>/<path> is created.

Expected result: running the above command should return an error like "Invalid directory" or "No such file or directory"

With the current solution, if a user makes a typo in when typing the path, there is no way for him to know about it. Also, repeating the mistake pollutes user's environment with useless directories, without him being aware of it.

Steps to Reproduce

rpm -qai --root=/fdsd/dfscsd
ls /fdsd/dfscsd

Other Downloads

Live chat