diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-16 06:56:26 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-09-16 06:56:26 +0000 |
commit | d9167be48660791a7b1a1276c1e9d9621f4adc85 (patch) | |
tree | 2ebd492cd286dba08f226103f6989850e67c0ca6 /kdmlib | |
parent | 76da651e47a07dde3b2babf82bf32c915ebf41c6 (diff) | |
download | tdebase-d9167be48660791a7b1a1276c1e9d9621f4adc85.tar.gz tdebase-d9167be48660791a7b1a1276c1e9d9621f4adc85.zip |
Fix tsak problems introduced in prior commit
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1253980 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdmlib')
-rw-r--r-- | kdmlib/kdmtsak.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kdmlib/kdmtsak.cpp b/kdmlib/kdmtsak.cpp index ab73826c9..82155d29c 100644 --- a/kdmlib/kdmtsak.cpp +++ b/kdmlib/kdmtsak.cpp @@ -33,13 +33,13 @@ int main (int argc, char *argv[]) if (verifier_result == 0) { // OK, the calling process is authorized to retrieve SAK data // First, flush the buffer - mPipe_fd = open(FIFO_FILE, O_RDWR | O_NONBLOCK); + mPipe_fd = open(FIFO_FILE, O_RDONLY | O_NONBLOCK); numread = 1; while (numread > 0) { numread = read(mPipe_fd, readbuf, 128); } // Now wait for SAK press - mPipe_fd = open(FIFO_FILE, O_RDWR); + mPipe_fd = open(FIFO_FILE, O_RDONLY); if (mPipe_fd > -1) { numread = read(mPipe_fd, readbuf, 128); readbuf[numread] = 0; |