]> code.ossystems Code Review - openembedded-core.git/commit
sstatesig: Add descriptive error message to getpwuid/getgrgid "uid/gid not found...
authorTomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Mon, 1 Feb 2021 00:32:56 +0000 (01:32 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Sat, 6 Feb 2021 06:53:57 +0000 (14:53 +0800)
commitca324a6fef99eef638a3577543592443a043f4e7
treebab5a30aa72b0f37698a156228fb5502e0730252
parent79368ef09e9eddfea8bcc39ca2b35f64b401fb35
sstatesig: Add descriptive error message to getpwuid/getgrgid "uid/gid not found" KeyError

If path is not owned by any user installed on target it gives
insufficient error "getpwuid(): uid not found" which may be misleading.
This exception occurs if uid/gid of path was not found in PSEUDO_PASSWD
files, which simply means the path is owned by host user and there is
host user contamination.

Add more information to the exception message to make it easier for user
to debug.

[YOCTO #14031]

Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 38540b59ed4ec8632e30a5fd6364b010d9da8470)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/lib/oe/sstatesig.py