PERFORCE change 178874 for review
Garrett Cooper
gcooper at FreeBSD.org
Thu May 27 11:15:09 UTC 2010
http://p4web.freebsd.org/@@178874?ac=10
Change 178874 by gcooper at gcooper-bayonetta on 2010/05/27 11:15:08
Fix inverted logic with the file descriptor value.
Affected files ...
.. //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/lib/libpkg/file.c#17 edit
Differences ...
==== //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/lib/libpkg/file.c#17 (text+ko) ====
@@ -428,7 +428,7 @@
}
/* The initial open failed or archive(3) failed to open the file. */
- if (archive_fd != -1 || archive == NULL) ;
+ if (archive_fd == -1 || archive == NULL) ;
/* archive(3) failed to open the file descriptor. */
else if (archive_read_open_fd(archive, archive_fd,
ARCHIVE_DEFAULT_BYTES_PER_BLOCK) != ARCHIVE_OK)
@@ -515,7 +515,7 @@
}
/* The initial open failed or archive(3) failed to open the file. */
- if (archive_fd != -1 || archive == NULL) ;
+ if (archive_fd == -1 || archive == NULL) ;
/* archive(3) failed to open the file descriptor. */
else if (archive_read_open_fd(archive, archive_fd,
ARCHIVE_DEFAULT_BYTES_PER_BLOCK) != ARCHIVE_OK)
More information about the p4-projects
mailing list