Http-Server icon indicating copy to clipboard operation
Http-Server copied to clipboard

Why does not the function(set_index function in supporting_functions.c:71) return value?

Open caofengl opened this issue 7 years ago • 0 comments

set_index(char *path)
{
	struct stat st;
	if(lstat(path,&st)<0)
	{	perror("");
		return -1;
	}
	if(S_ISDIR(st.st_mode))  strcat(path,"/index.html");
	return 1;	
}

caofengl avatar Feb 07 '18 02:02 caofengl