summaryrefslogtreecommitdiff
path: root/src/bin/e_ipc.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2008-10-26 20:48:57 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2008-10-26 20:48:57 +0000
commitc29bd72eb07e6b2e518e9b1e0447edf7ce74dfc3 (patch)
treedfcfc2a002a79b6fd8bd22f05b95e51fadf9909c /src/bin/e_ipc.c
parent6dc64c5559ceafb5992669b1f9b44a8b83521053 (diff)
No need to create string before showing error message.
SVN revision: 37170
Diffstat (limited to 'src/bin/e_ipc.c')
-rw-r--r--src/bin/e_ipc.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/src/bin/e_ipc.c b/src/bin/e_ipc.c
index 5392317..6dc779c 100644
--- a/src/bin/e_ipc.c
+++ b/src/bin/e_ipc.c
@@ -44,27 +44,21 @@ e_ipc_init(void)
44 } 44 }
45 else 45 else
46 { 46 {
47 snprintf(buf, sizeof(buf), 47 e_error_message_show(_("Possible IPC Hack Attempt. The IPC socket\n"
48 _("Possible IPC Hack Attempt. The IPC socket\n" 48 "directory already exists BUT has permissions\n"
49 "directory already exists BUT has permissions\n" 49 "that are too leanient (must only be readable\n" "and writable by the owner, and nobody else)\n"
50 "that are too leanient (must only be readable\n" 50 "or is not owned by you. Please check:\n"
51 "and writable by the owner, and nobody else)\n" 51 "%s/enlightenment-%s\n"), tmp, user);
52 "or is not owned by you. Please check:\n"
53 "%s/enlightenment-%s\n"),
54 tmp, user);
55 e_error_message_show(buf);
56 return 0; 52 return 0;
57 } 53 }
58 } 54 }
59 else 55 else
60 { 56 {
61 snprintf(buf, sizeof(buf), 57 e_error_message_show(_("The IPC socket directory cannot be created or\n"
62 _("The IPC socket directory cannot be created or\n" 58 "examined.\n"
63 "examined.\n" 59 "Please check:\n"
64 "Please check:\n" 60 "%s/enlightenment-%s\n"),
65 "%s/enlightenment-%s\n"), 61 tmp, user);
66 tmp, user);
67 e_error_message_show(buf);
68 return 0; 62 return 0;
69 } 63 }
70 } 64 }