From 6c7f04bf108762bfef2a02bb1aa71046624f32d4 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Mon, 18 Apr 2011 11:25:56 +0200 Subject: [PATCH] no need to call getpeereid() anymore --- aucat/sock.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/aucat/sock.c b/aucat/sock.c index 6434949..66bc2ad 100644 --- a/aucat/sock.c +++ b/aucat/sock.c @@ -326,18 +326,6 @@ sock_new(struct fileops *ops, int fd) { struct aproc *rproc, *wproc; struct sock *f; - uid_t uid, gid; - - /* - * ensure that all connections belong to the same user, - * for privacy reasons. - * - * XXX: is there a portable way of doing this ? - */ - if (getpeereid(fd, &uid, &gid) < 0) { - close(fd); - return NULL; - } f = (struct sock *)pipe_new(ops, fd, "sock"); if (f == NULL) {