From 3d410615eb81baa30f7ead781ad021bee8294802 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 7 Apr 2010 16:05:45 +0000 Subject: Secured lock process control pipe git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1112212 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdesktop/lock/lockprocess.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc index 75465bb34..f0f53ae1e 100644 --- a/kdesktop/lock/lockprocess.cc +++ b/kdesktop/lock/lockprocess.cc @@ -239,6 +239,7 @@ void LockProcess::setupPipe() { /* Create the FIFO if it does not exist */ umask(0); + unlink(FIFO_DIR); mkdir(FIFO_DIR,0600); mknod(FIFO_FILE, S_IFIFO|0600, 0); -- cgit v1.2.1