forked from enlightenment/efl
evas cserve - remove unused if 0'd out code that is misleading my greps
looking for XDG_RUNTIME_DIR usage to lock down for setuid apps... this msled me... remove it as it's unused.
This commit is contained in:
parent
a90c3ffe80
commit
311ecceeb7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue