From 7e43d22daddd33cd4aab0fc6d0a0302444f24eaf Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 18 Jun 2012 12:54:07 +0000 Subject: [PATCH] remove a probably-impossible case where efm's op slave would execute an undefined command without the user's knowledge SVN revision: 72394 --- src/bin/e_fm/e_fm_ipc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/e_fm/e_fm_ipc.c b/src/bin/e_fm/e_fm_ipc.c index fb190bf18..b744241b5 100644 --- a/src/bin/e_fm/e_fm_ipc.c +++ b/src/bin/e_fm/e_fm_ipc.c @@ -786,6 +786,7 @@ _e_fm_ipc_slave_run(E_Fm_Op_Type type, const char *args, int id) if (!slave) return 0; command = eina_stringshare_add(_e_fm_ipc_prepare_command(type, args)); + if (!command) return 0; slave->id = id; slave->exe = ecore_exe_pipe_run(command, ECORE_EXE_PIPE_WRITE | ECORE_EXE_PIPE_READ | ECORE_EXE_PIPE_ERROR, slave); @@ -1427,7 +1428,7 @@ _e_fm_ipc_prepare_command(E_Fm_Op_Type type, const char *args) else if (type == E_FM_OP_SYMLINK) strcpy(command, "lns"); else - strcpy(command, "???"); + return NULL; libdir = getenv("E_LIB_DIR") ?: PACKAGE_LIB_DIR; length = 256 + strlen(libdir) + strlen(args);