From eb29cea7296ca62e96fdcfadefcca03b2383ff85 Mon Sep 17 00:00:00 2001 From: Zhixiong Chi Date: Wed, 1 Jul 2015 15:54:21 +0800 Subject: rpm: check if the argument(rootpath) exists or be writable When user execute the command "rpm -qai --root=$dir",if $dir doesn't exist or is unwritable as result of making a typo in rootpath,then it will create dirent $dir and subdirectory. So we should add the check function to fix it before creating relational subdirectory,and warn the incorrect rootpath to user. It just checks the rootpath reasonableness when the user input the argument(--root=/-r=). (From OE-Core rev: dded280d26b2a5ca2a1e4ac787d36cdd13b603d3) Signed-off-by: Zhixiong Chi Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-devtools/rpm/rpm_5.4.14.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/recipes-devtools/rpm/rpm_5.4.14.bb') diff --git a/meta/recipes-devtools/rpm/rpm_5.4.14.bb b/meta/recipes-devtools/rpm/rpm_5.4.14.bb index fb81f12a1f..2e17a91137 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4.14.bb +++ b/meta/recipes-devtools/rpm/rpm_5.4.14.bb @@ -93,6 +93,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.14-0.20131024.src.rpm;e file://0001-using-poptParseArgvString-to-parse-the-_gpg_check_pa.patch \ file://no-ldflags-in-pkgconfig.patch \ file://rpm-lua-fix-print.patch \ + file://rpm-check-rootpath-reasonableness.patch \ " # Uncomment the following line to enable platform score debugging -- cgit v1.2.3-54-g00ecf