- change dir creation message from warning to debug for now.
- verify perms (but not mode) on %ghost files.
- headers without RPMTAG_NAME are skipped when retrieved.
+ - within a region, entries sort by address; added drips sort by tag.
4.0 -> 4.0.[12]
- add doxygen and lclint annotations most everywhere.
/*@=castexpose@*/
int rc = (ap->info.offset - bp->info.offset);
- if (rc == 0)
- rc = (ap->info.tag - bp->info.tag);
+ if (rc == 0) {
+ /* Within a region, entries sort by address. Added drips sort by tag. */
+ if (ap->info.offset < 0)
+ rc = (((char *)ap->data) - ((char *)bp->data));
+ else
+ rc = (ap->info.tag - bp->info.tag);
+ }
return rc;
}
*/
if (tl+REGION_TAG_COUNT == dl)
tl += REGION_TAG_COUNT;
-#if 0
- if (tl > dl)
- dl = tl;
-#endif
return dl;
}
if (hdrchkTags(entry->info.count))
goto errxit;
- { int off = ntohl(pe->offset);
+ { int off = ntohl(pe->offset);
if (hdrchkData(off))
goto errxit;
entry->data = xrealloc(entry->data, entry->length + length);
memset(((char *)entry->data) + entry->length, '\0', ghosts);
-#if 0
- strcpy(((char *)entry->data) + entry->length + ghosts, string);
-#else
memmove(((char *)entry->data) + entry->length + ghosts, string, strlen(string)+1);
-#endif
entry->length += length;
entry->info.count = langNum + 1;