[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] my_getpw*
From:       "Vladimir N. Oleynik" <dzo () simtreas ! ru>
Date:       2002-09-30 7:38:03
[Download RAW message or body]

I wrote:
 
> Hi, Erik.
> 
> my_getpw(uid/gid) and applets used it have problem:
> if username for uid not found, applets can`t detect it
> (but code pessent). Also "%8ld " format is bad:
> spaces not required (applets have self format
> or spec format (tar applet) and overflow for "id" applet...)
> This problem also pressent in stable version.
> Patch for unstable in attach.
> 
> --w
> vodz
> 
>   --------------------------------------------------------------------------------
>                       Name: last_patch57.gz
>    last_patch57.gz    Type: application/x-gzip
>                   Encoding: base64

Oops.
For tar.c not correct. Must
+       if (my_getgrgid(header.gname, statbuf->st_gid)) 
to
+       if (my_getgrgid(header.gname, statbuf->st_gid) == NULL) 

--w
vodz

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic