From 0e5e0ec2189600157f6966afd40f3132d23f6c3a Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Sat, 7 Dec 2013 21:33:16 +0100 Subject: [PATCH] reduce indent level --- src/bin/e_ipc.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c index e2853cea2..893a8638d 100644 --- a/src/bin/e_ipc.c +++ b/src/bin/e_ipc.c @@ -82,18 +82,17 @@ e_ipc_init(void) base, user, id1); if (mkdir(buf, S_IRWXU) < 0) goto retry; - if (stat(buf, &st) == 0) + if (stat(buf, &st) < 0) + goto retry; + if ((st.st_uid == getuid()) && + ((st.st_mode & (S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO)) == + (S_IRWXU | S_IFDIR))) { - if ((st.st_uid == getuid()) && - ((st.st_mode & (S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO)) == - (S_IRWXU | S_IFDIR))) - { - snprintf(buf3, sizeof(buf3), "%s/%s-%i", - buf, disp, pid); - _e_ipc_server = ecore_ipc_server_add - (ECORE_IPC_LOCAL_SYSTEM, buf3, 0, NULL); - if (_e_ipc_server) break; - } + snprintf(buf3, sizeof(buf3), "%s/%s-%i", + buf, disp, pid); + _e_ipc_server = ecore_ipc_server_add + (ECORE_IPC_LOCAL_SYSTEM, buf3, 0, NULL); + if (_e_ipc_server) break; } retry: id1 = rand();