I passed the first check50 for Pset6 but still can't seem to get my server working after implementing indexes and load. I've been getting 403 errors whenever I request my homepage, as well as an invalid pointer error.
Using GDB, I was able to pinpoint the source of the error to here:
void list(const char* path)
{
// ensure path is readable and executable
if (access(path, R_OK | X_OK) == -1)
{
error(403);
return;
}
Can someone shed some light on the issue?
Thanks!