Mailinglist Archive: opensuse-factory (949 mails)

< Previous Next >
Re: [opensuse-factory] NFS client doesn't work in MS6
  • From: Anders Johansson <ajohansson@xxxxxxx>
  • Date: Thu, 20 Aug 2009 23:00:33 +0200
  • Message-id: <200908202300.33515.ajohansson@xxxxxxx>
On Thursday 20 August 2009 22:34:26 Katarina Machalkova wrote:
Known bug: https://bugzilla.novell.com/show_bug.cgi?id=530283
Will most probably end up assigned to me, no clue how to fix it so far ..
*grin*

Looks like a bug in qt. It tests for <= 0 on the return value of
inotify_add_watch, but it can return 0 as a valid watch ID, according to both
the man page ("non-negative") and my reading of the kernel source

Anders
--- src/corelib/io/qfilesystemwatcher_inotify.cpp.orig 2009-08-20
22:53:33.000000000 +0200
+++ src/corelib/io/qfilesystemwatcher_inotify.cpp 2009-08-20
22:53:48.000000000 +0200
@@ -251,7 +251,7 @@
| IN_MOVE_SELF
| IN_DELETE_SELF
)));
- if (wd <= 0) {
+ if (wd < 0) {
perror("QInotifyFileSystemWatcherEngine::addPaths:
inotify_add_watch failed");
continue;
}
< Previous Next >