summaryrefslogtreecommitdiffstats
path: root/dcop/dcopserver_shutdown.c
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-08-09 17:34:23 +0900
committerSlávek Banko <slavek.banko@axis.cz>2021-02-03 22:41:23 +0100
commit35bff96a9ce2ea78beacd98dba537c1a5871dfff (patch)
tree00f3993656680a1fb102990528dc447876633f84 /dcop/dcopserver_shutdown.c
parentf250423e9d9f93562ad82fc04620b335e0c6c783 (diff)
downloadtdelibs-35bff96a9ce2ea78beacd98dba537c1a5871dfff.tar.gz
tdelibs-35bff96a9ce2ea78beacd98dba537c1a5871dfff.zip
Add a knob to use fixed path `iceauth` tool
`system()` and `popen()` may unsafe unless using absolute command path. Rely on PATH environment variable set by users may result in unwanted tool. Signed-off-by: OBATA Akio <obache@wizdas.com> Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit ac8c8ca54aaed1466255161a3d727dcfade4a7d9)
Diffstat (limited to 'dcop/dcopserver_shutdown.c')
-rw-r--r--dcop/dcopserver_shutdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dcop/dcopserver_shutdown.c b/dcop/dcopserver_shutdown.c
index fb25a86fa..af75c6d5a 100644
--- a/dcop/dcopserver_shutdown.c
+++ b/dcop/dcopserver_shutdown.c
@@ -151,7 +151,7 @@ static void cleanupDCOPsocket(char *buffer)
if (socket_file)
unlink(socket_file);
- snprintf(cmd, BUFFER_SIZE, "iceauth remove netid='%s'", buffer);
+ snprintf(cmd, BUFFER_SIZE, ICEAUTH_COMMAND " remove netid='%s'", buffer);
system(cmd);
}