diff options
author | OBATA Akio <[email protected]> | 2020-08-09 17:34:23 +0900 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-08-26 18:11:02 +0200 |
commit | ac8c8ca54aaed1466255161a3d727dcfade4a7d9 (patch) | |
tree | a16f3955e178f3dca2daf98bf0ade9750aa13f6f /dcop/dcopserver_shutdown.c | |
parent | 56c5973b6b33df77a7491b07411cbd772c0d5d79 (diff) | |
download | tdelibs-ac8c8ca54aaed1466255161a3d727dcfade4a7d9.tar.gz tdelibs-ac8c8ca54aaed1466255161a3d727dcfade4a7d9.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 <[email protected]>
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'dcop/dcopserver_shutdown.c')
-rw-r--r-- | dcop/dcopserver_shutdown.c | 2 |
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); } |