Initial original import from: fuse-2.4.2-2.fc4
[captive.git] / src / libcaptive / client / vfs.c
index 4f607aa..180f389 100644 (file)
@@ -103,8 +103,9 @@ int fd;
                        if (isatty(fd)) {
 const gchar *msg="Captive NTFS v" VERSION ".  Check a new version at: http://www.jankratochvil.net/\n";
 
-                               write(fd,msg,strlen(msg));
-                               break;
+                               /* Prevent: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result */
+                               if (strlen(msg)==write(fd,msg,strlen(msg)))
+                                       break;
                                }
                        }
                }