diff options
-rw-r--r-- | pflocal/sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pflocal/sock.c b/pflocal/sock.c index e39e2932..dfe5cf44 100644 --- a/pflocal/sock.c +++ b/pflocal/sock.c @@ -123,8 +123,8 @@ sock_create (struct pipe_class *pipe_class, mode_t mode, struct sock **sock) new->connect_queue = NULL; new->pipe_class = pipe_class; new->addr = NULL; - new->uid = 0; - new->gid = 0; + new->uid = getuid (); + new->gid = getgid (); memset (&new->change_time, 0, sizeof (new->change_time)); pthread_mutex_init (&new->lock, NULL); |