Mail Archives: djgpp-workers/2001/10/01/09:44:24
> > > Note that I would prefer /dev/[bogus] or something similar, to avoid
> > > any and all issues with colons (either as drive or path separator).
> >
> > What issues are those?
> >
> > If you are afraid of commands that fail, that's okay: we _want_ them
> > to fail when this happens. We just want them to fail in the least
> > dangerous way.
>
> I was thinking along the lines of a Unixy program building a Unixy path
> list using /dev/:bogus:, which would lead to '/dev/' and 'bogus' being
> used.
OK, this is in fixpath, which insists on a return form of d:/dir/dir ...
and the users of fixpath break badly if the first 2 return letters are
not d: ... (expecting the 3rd to always be / and not checking for it
was only in one place and that was an easy fix).
So, it would have to be a return of something like d:/:bogus:/ - and so
far we've only seen getcwd fail for long paths with lfn=n ...
Right now I'm using a relative path if getcwd fails ("d:.") which seems
to have fixed a few things without breaking anything I've noticed. Since
this is only in long dirs with lfn=n, hard to see (it would use d:\
previously).
- Raw text -