[ee122] Server Handling Dot's

Daniel Killebrew dank at berkeley.edu
Sat Oct 27 13:01:54 PDT 2007


All of those should be treated as directories, except the one with 3 
dots since that's invalid.
Use the unix command 'ls' to guide you on whats a file and whats a 
directory.

Also the fopen() function returns an error, and the errno will be set to 
EISDIR if you tried to open a directory.


Daniel

Jeff Wang wrote:
> How is the server supposed to handle dots (".") in the URI?
>
> For example, if the URI is "/..", do we give the parent directory?
>
> How about:
>     "/foo/."
>     "/foo/../"
>     "/foo/../../"
>     "/foo/..."
>
> I don't the spec makes it clear since our regex in the pervious 
> milestone was very lenient.
> Right now, if there is a "." after the last "/", I'm just treating it 
> has a file.
>
> Thanks,
> Jeff Wang
>


More information about the ee122 mailing list