Re: [netsniff-ng] [PATCH] netsniff-ng: Seems typo in getting current group id

2015-04-22 Thread Tobias Klauser
On 2015-04-22 at 16:36:50 +0200, Vadim Kochan  wrote:
> From: Vadim Kochan 
> 
> Changed to use ctx->gid when call getgid() on init_ctx.
> 
> Signed-off-by: Vadim Kochan 

Nice catch! Thanks a lot Vadim.

-- 
You received this message because you are subscribed to the Google Groups 
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to netsniff-ng+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[netsniff-ng] [PATCH] netsniff-ng: Seems typo in getting current group id

2015-04-22 Thread Vadim Kochan
From: Vadim Kochan 

Changed to use ctx->gid when call getgid() on init_ctx.

Signed-off-by: Vadim Kochan 
---
 netsniff-ng.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/netsniff-ng.c b/netsniff-ng.c
index c0d70c8..4ad8b19 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -1096,7 +1096,7 @@ static void init_ctx(struct ctx *ctx)
memset(ctx, 0, sizeof(*ctx));
 
ctx->uid = getuid();
-   ctx->uid = getgid();
+   ctx->gid = getgid();
 
ctx->cpu = -1;
ctx->packet_type = -1;
-- 
2.3.1

-- 
You received this message because you are subscribed to the Google Groups 
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to netsniff-ng+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.