diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-07 16:05:45 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-07 16:05:45 +0000 |
commit | 3d410615eb81baa30f7ead781ad021bee8294802 (patch) | |
tree | 99d9bd13b30df459a539fea3e018fe0a652a15ec | |
parent | c97349f53a15c930ce1f5f53ef37c44318a1981a (diff) | |
download | tdebase-3d410615eb81baa30f7ead781ad021bee8294802.tar.gz tdebase-3d410615eb81baa30f7ead781ad021bee8294802.zip |
Secured lock process control pipe
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1112212 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r-- | kdesktop/lock/lockprocess.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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); |