wip: appropriate checks are in wl_display_add_socket_fd()
authorŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 23 Dec 2015 16:47:17 +0000 (17:47 +0100)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 29 Jan 2016 15:15:53 +0000 (16:15 +0100)
Change-Id: I7646ba7a9463a666160b1026fd3173945419af53
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
src/bin/e_comp_wl.c

index 1a1ef6681348dddd0e508b8ab404e40347b9412c..2ca6fea56852a446274bddeaf163185445883901 100644 (file)
@@ -4193,18 +4193,6 @@ _e_comp_wl_compositor_create(void)
        int f = SD_LISTEN_FDS_START;
        const char* runtime_dir;
 
-       a = sd_is_socket_unix(f, AF_UNIX, SOCK_STREAM, 1);
-       if (a < 0)
-        {
-          ERR("Failed to determine received socket type: %m");
-          goto sock_err;
-        }
-       else if (a == 0)
-        {
-          ERR("Received an invalid socket");
-          goto sock_err;
-        }
-
        /* If unset wl_display_add_socket_auto() would fail, let's fail too. */
        runtime_dir = getenv("XDG_RUNTIME_DIR");
        if (!runtime_dir)