Restricted SFTP

Damien Miller djm at mindrot.org
Fri Mar 23 20:19:14 EST 2001


On Fri, 23 Mar 2001, Andrew Bartlett wrote:

> It appears (by looking at the code) that a smattering of realpath and
> strcmp calls could provide the required functionailty.  Does this looks
> like the way to do it / do you see any problems with this approach?

Aesthetically: yes. Practically: no, so long as you are careful to catch
all the cases.

-d

-- 
| Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's
| http://www.mindrot.org          /   distributed filesystem'' - Dan Geer






More information about the openssh-unix-dev mailing list