File iptraf-3.0.0-fd.patch of Package iptraf

--- src/landesc.c
+++ src/landesc.c
@@ -208,7 +208,7 @@
     else if (linktype == LINK_FDDI)
         fd = fopen(FDDIFILE, "w");
 
-    if (fd < 0) {
+    if (fd == 0) {
         etherr();
         return;
     }
openSUSE Build Service is sponsored by