Hi,

Masayuki Igawa wrote:
> There is the problem that cgrulesengd cannot get Gid from /proc/PID/status,
> because the function breaks just after getting Uid data:
> 
>  $ cat /proc/$$/status
>  [snip]
>  Uid:    500     500     500     500
>  Gid:    500     500     500     500
>  [snip]
>  $

This problem is due to my mistake, sorry.
I didn't notice this problem because I tested only Uid event, not Gid event.


> This patch fixes this problem.

I think this patch is right.


Thanks
Ken'ichi Ohmichi


> Signed-off-by: Masayuki Igawa <[email protected]>
> ---
>  src/daemon/cgrulesengd.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/src/daemon/cgrulesengd.c b/src/daemon/cgrulesengd.c
> index 07d4a5d..595c321 100644
> --- a/src/daemon/cgrulesengd.c
> +++ b/src/daemon/cgrulesengd.c
> @@ -168,11 +168,9 @@ static int cgre_get_euid_egid_from_status(pid_t pid, 
> uid_t *euid, gid_t *egid)
>               if (!strncmp(buf, "Uid:", 4)) {
>                       sscanf((buf + 5), "%d%d%d%d", &ruid, euid,
>                               &suid, &fsuid);
> -                     break;
>               } else if (!strncmp(buf, "Gid:", 4)) {
>                       sscanf((buf + 5), "%d%d%d%d", &rgid, egid,
>                               &sgid, &fsgid);
> -                     break;
>               }
>               memset(buf, '\0', sizeof(buf));
>       }
> 
> 
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image 
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Libcg-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libcg-devel
> 



------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to