LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kdebase-pardus-fix-fish.patch of Package kdebase3 (Project openSUSE:Factory)

From f1b124fde9d7bfda5de7c20df77c7adae065e443 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Ozan=20=C3=87a=C4=9Flayan?= <ozan@pardus.org.tr>
Date: Mon, 27 Jun 2011 05:38:18 +0000
Subject: [PATCH] kioslave/fish: Make copy reliable

---
 kioslave/fish/fish.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kioslave/fish/fish.cpp b/kioslave/fish/fish.cpp
index 4b7ea26..3967bcd 100644
--- a/kioslave/fish/fish.cpp
+++ b/kioslave/fish/fish.cpp
@@ -1430,7 +1430,7 @@ void fishProtocol::run() {
                     sent();
                 }
             }
-            if (FD_ISSET(childFd,&rfds)) {
+            else if (FD_ISSET(childFd,&rfds)) {
                 rc = read(childFd,buf+offset,32768-offset);
                 //myDebug( << "read " << rc << " bytes" << endl);
                 if (rc > 0) {
-- 
1.6.1