News for hackers. Stuff that matters.
Re:Dot Dot Considered Harmful by infinity0 on Thursday November 29, 2018 @12:22AM (#18558293)
> What about shell traversal? > [..] For example, if the CWD is “/foo/bar”, and a user calls “cd ..”, then the underlying call may be transformed into “chdir /foo/bar/..”, which can be canonicalized to “/foo”.

So fuchsia also won't have CWD, then? Because if it has CWD, then the process can always chdir / rendering this lack-of-.. exercise pointless.

Re:Dot Dot Considered Harmful by bun_at_work on Thursday November 29, 2018 @06:52AM (#18559556)
I think the idea in Fuchsia is that directories can be passed as resources to children processes, which can then move freely around in that directory structure. If the parent passes a child "/foo/bar/", the child sees "bar/" and it's contents, which might be "bar/baz/bingo/". The child can then move to "/bar/baz/bingo/" do work there, and then recurse up the hierarchy. It simply cannot ".." out of "foo/".

Hope that makes sense.

Re:Dot Dot Considered Harmful by IshKebab on Thursday November 29, 2018 @12:48AM (#18558375)
I don't see what made you think it won't have a CWD.
Re:Dot Dot Considered Harmful by rictic on Thursday November 29, 2018 @03:35AM (#18558874)
fuchsia is not posix, so they can (and I suspect have) change the semantics of chdir to be more restrictive.