CVS patchset: 4684
CVS date: 2001/04/17 18:30:23
- fix: %_netsharedpath needs to look at basenames (#26561).
- fix: --excludepath was broken (#24434).
- fix: s390 (and ppc?) could return CPIOERR_BAD_HEADER (#28645).
+ - fix: Fwrite's are optimized out by aggressive compiler(irix) (#34711).
4.0 -> 4.0.[12]
- add doxygen and lclint annotations most everywhere.
rc = RPMERR_READ;
goto exit;
}
- if (Fwrite(buf, sizeof(buf[0]), count, fd) < 0) {
+ if (Fwrite(buf, sizeof(buf[0]), count, fd) != count) {
rpmError(RPMERR_NOSPACE, _("Unable to write payload to %s: %s\n"),
fileName, Fstrerror(fd));
rc = RPMERR_NOSPACE;
l.osnum = htons(l.osnum);
l.signature_type = htons(l.signature_type);
- if (Fwrite(&l, sizeof(char), sizeof(l), fd) < 0) {
+ if (Fwrite(&l, sizeof(char), sizeof(l), fd) != sizeof(l)) {
return 1;
}