/* For a filename .tmp_filename.ext return filename.ext. Needed to compensate for filename skewing caused by the mod-versioning mechanism.  */
static const char* deskew(const char *basename)
/* For a filename .tmp_filename.ext return filename.ext. Needed to compensate for filename skewing caused by the mod-versioning mechanism.  */
static const char* deskew(const char *basename)
{
	if (strncmp(basename, SKEW_PREFIX, sizeof(SKEW_PREFIX) - 1) == 0)
		return basename + sizeof(SKEW_PREFIX) - 1;
	return basename;
}