This cannot possibly be correct for any sane definition of that word...

diff --git a/module/owlib/src/c/ow_read.c b/module/owlib/src/c/ow_read.c
index f4e50a1..df4f852 100644
--- a/module/owlib/src/c/ow_read.c
+++ b/module/owlib/src/c/ow_read.c
@@ -289,7 +289,7 @@ static int FS_r_local(struct one_wire_query * owq)
     struct parsedname * pn = PN(owq) ;
     
     /* Readable? */
-    if ( pn->ft->read != NO_READ_FUNCTION )
+    if ( pn->ft->read == NO_READ_FUNCTION )
         return -ENOTSUP;
 
     /* Mounting fuse with "direct_io" will cause a second read with offset

-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  [EMAIL PROTECTED]
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
People think love is an emotion.  Love is good sense.
                -- Ken Kesey

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to