evas cserve - remove unused if 0'd out code that is misleading my greps
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 9 Feb 2017 01:23:20 +0000 (10:23 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 9 Feb 2017 09:38:28 +0000 (18:38 +0900)
looking for XDG_RUNTIME_DIR usage to lock down for setuid apps... this
msled me... remove it as it's unused.

src/bin/evas/evas_cserve2_main_loop_linux.c

index 33a9955..abbee95 100644 (file)
@@ -238,23 +238,6 @@ _socket_path_set(char *path)
    /* FIXME: check we can actually create this socket */
    strcpy(path, buf);
    return;
-#if 0   
-   env = getenv("XDG_RUNTIME_DIR");
-   if (!env || !env[0])
-     {
-        env = getenv("HOME");
-        if (!env || !env[0])
-          {
-             env = getenv("TMPDIR");
-             if (!env || !env[0])
-               env = "/tmp";
-          }
-     }
-
-   snprintf(buf, sizeof(buf), "%s/evas-cserve2-%x.socket", env, getuid());
-   /* FIXME: check we can actually create this socket */
-   strcpy(path, buf);
-#endif   
 }
 
 static int