library/src/blockclass/BP-BlockClass.cc
// searches the existing list for conditions, stores result in searchList
// note: will destroy previous contents of the searchList element.
searches the existing list for conditions, stores result in searchList
note: will destroy previous contents of the searchList element.
searches the existing list for conditions stores result in searchList note : will destroy previous contents of the searchList element .
int Block::File_ListSearch(char *name, bool execute, bool write, bool read, bool elf, uid_t uid, gid_t gid)
{
	if (this->searchList != NULL)
	{
		BP_DestroyFileList(this->searchList);
		this->searchList = NULL;
	}
	if (this->fileList == NULL)
		return ERR_FAILURE;
	this->searchList = BP_FSSearchAll(fileList, name, execute, write, read, elf, uid, gid);
	return ERR_SUCCESS;
}
int Block :: File_ListSearch ( char * name , bool execute , bool write , bool read , bool elf , uid_t uid , gid_t gid ) { if ( this -> searchList != NULL ) { BP_DestroyFileList ( this -> searchList ) ; this -> searchList = NULL ; } if ( this -> fileList == NULL ) return ERR_FAILURE ; this -> searchList = BP_FSSearchAll ( fileList , name , execute , write , read , elf , uid , gid ) ; return ERR_SUCCESS ; }
searches the existing list for conditions, stores result in searchList
note: will destroy previous contents of the searchList element.
searches the existing list for conditions stores result in searchList note : will destroy previous contents of the searchList element .
// search the list // ensure we have a file list // attempt to search all files // return indicating success