This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: access () and path.cc
At 11:36 PM 2/27/2003 -0500, you wrote:
>Pierre,
>You and Corinna are giving me a headache. :-)
My immediate access () problem can be fixed by replacing
real_path by fn in the stat_worker call.
Problem #1 is a real bug, should be easy to fix, and may not
show up anywhere anyway, so not urgent.
Problems #2 & 3 can be solved by
>For instance, wouldn't all this be alleviated just by using
>cfg->get_name() rather than cfg->get_win32_name in the stat functions?
at the expense of efficiency (most of the time).
But efficiency can be revisited after you integrate your changes.
BTW, I was looking at the path/fhandler code and came to the tentative
conclusion that it shouldn't be necessary to keep both a Windows path
and a Unix path in the fhandler structures.
For the files understood by Windows, I think the Windows path is enough.
For the other files (most /dev, /proc), the Posix path should be OK.
Pierre