Wind River Support Network

HomeDefectsLIN6-9886
Fixed

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: 6.0.0.18
Fix Version: 6.0.0.22
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

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
Online