Hello Michael,

just wanted to ask whether you have already had an opportunity to have a 
look at this one?

Thank you,
Andrej

Am 05.10.2018 um 11:26 schrieb andrej.gantv...@wago.com:
> Empty parameters may be passed i.e. when calling install_archive with
> UID/GID set to '-'. According to documentation this should preserve the
> owner/group stored in the archive. Without this patch, empty strings are
> mapped to the first entry in /etc/{passwd,group} (usually 0) instead,
> thus breaking the documented behaviour.
> 
> Signed-off-by: Andrej Gantvorg <andrej.gantv...@wago.com>
> ---
>    scripts/lib/ptxd_make_xpkg_pkg.sh | 4 ++--
>    1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh
> b/scripts/lib/ptxd_make_xpkg_pkg.sh
> index b3f2f20f3..0ec1c9b2a 100644
> --- a/scripts/lib/ptxd_make_xpkg_pkg.sh
> +++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
> @@ -79,12 +79,12 @@ export -f ptxd_install_getent_id
>    # convert usr/grp that contain names into numeric values
>    #
>    ptxd_install_resolve_usr_grp() {
> -    if ! [ 0 -le $usr ] 2>/dev/null; then
> +    if ! [ 0 -le "$usr" ] 2>/dev/null && ! [ -z "$usr" ] ; then
>       ptxd_install_getent_id usr || return
>        else
>       unset usr_name
>        fi
> -    if ! [ 0 -le $grp ] 2>/dev/null; then
> +    if ! [ 0 -le "$grp" ] 2>/dev/null && ! [ -z "$grp" ] ; then
>       ptxd_install_getent_id grp || return
>        else
>       unset grp_name
> 
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to