[cs631apue] question about chroot(2)
Jan Schaumann
jschauma at stevens.edu
Sat Nov 23 20:44:52 EST 2013
yluo4 <yluo4 at stevens.edu> wrote:
> I think option(1) may also need to check if directory exist. For
> example,
> ./sws /home/yluo4/testdir
> GET /../dir_test/../test
>
> I think if dir_test doesn't exist in /home/yluo4/testdir, we should
> response "Not Found", not resolve it to /home/yluo4/testdir/test.
Correct.
> else: /*this is the case that symbolic link
> points to out of prefix. Is it right to return
> * error in this case?
Yes.
-Jan
More information about the cs631apue
mailing list