futility/updater_archive.c
/* Callback for archive_has_entry on a general file system. */
Callback for archive_has_entry on a general file system.
Callback for archive_has_entry on a general file system .
static int archive_fallback_has_entry(void *handle, const char *fname)
{
	int r;
	char *temp_path = NULL;
	const char *path = archive_fallback_get_path(handle, fname, &temp_path);
	VB2_DEBUG("Checking %s\n", path);
	r = access(path, R_OK);
	free(temp_path);
	return r == 0;
}
static int archive_fallback_has_entry ( void * handle , const char * fname ) { int r ; char * temp_path = NULL ; const char * path = archive_fallback_get_path ( handle , fname , & temp_path ) ; VB2_DEBUG ( " \n " , path ) ; r = access ( path , R_OK ) ; free ( temp_path ) ; return r == 0 ; }
Callback for archive_has_entry on a general file system.
Callback for archive_has_entry on a general file system .