Oops, unbreak file opens..
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 17 Sep 2007 08:59:45 +0000 (11:59 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 17 Sep 2007 08:59:45 +0000 (11:59 +0300)
rpmio/rpmio.c

index 902a889..3eb8ae1 100644 (file)
@@ -1649,7 +1649,7 @@ fprintf(stderr, "*** Fopen fdio path %s fmode %s\n", path, fmode);
 if (_rpmio_debug)
 fprintf(stderr, "*** Fopen ufdio path %s fmode %s\n", path, fmode);
            fd = ufdOpen(path, flags, perms);
-           if (fd == NULL || !fdFileno(fd) >= 0)
+           if (fd == NULL || !(fdFileno(fd) >= 0))
                return fd;
            break;
        default: