chiark / gitweb /
bus-proxy: it's OK if getpeercred doesn't work
[elogind.git] / src / bus-proxyd / bus-proxyd.c
index 11d0e289cfcc9843a90dcd59597d9066a4a930f9..8c1b6a5ad6281bfce44e27a271f332c529c6789f 100644 (file)
@@ -1166,12 +1166,7 @@ int main(int argc, char *argv[]) {
                 sd_is_socket(out_fd, AF_UNIX, 0, 0) > 0;
 
         if (is_unix) {
-                r = getpeercred(in_fd, &ucred);
-                if (r < 0) {
-                        log_error("Failed to get peer creds: %s", strerror(-r));
-                        goto finish;
-                }
-
+                (void) getpeercred(in_fd, &ucred);
                 (void) getpeersec(in_fd, &peersec);
         }