Skip to content
Commit 887f0a60 authored by Tomasz Dziendzielski's avatar Tomasz Dziendzielski Committed by Steve Sakoman
Browse files

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: default avatarTomasz Dziendzielski <tomasz.dziendzielski@gmail.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 38540b59)
Signed-off-by: default avatarSteve Sakoman <steve@sakoman.com>
parent 22b0bd5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment