Subject: Re: [boost] [filesystem] security questions
From: Beman Dawes (bdawes_at_[hidden])
Date: 2009-02-21 06:36:57
On Fri, Feb 20, 2009 at 2:47 PM, Sergei Politov <spolitov_at_[hidden]> wrote:
> In *nix systems it is recommended practice to operate with file
> descriptors rather than file names.
Do you have a reference for this recommendation? I tried a couple of
Google searches but didn't come up with anything.
> The sample commands sequence is:
> 1) open file
> 2) check file status (check symlink for instance)
> 3) process write operation
> Unfortunately I cannot find a way to do the same using boost::filesystem
I'm having trouble seeing how this is different from what fstream et
al. does under the covers, unless it is just the check file status you
are concerned about. Could you provide actual POSIX code for the
sequence of operations you would like to accomplish?
> Is it planned to support such style?
I need to know more before I can answer that.