[fpc-pascal] GetCurrentDir
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Apr 22 09:23:22 CEST 2013
On Mon, 22 Apr 2013 09:04:30 +0200 (CEST)
Michael Van Canneyt <michael at freepascal.org> wrote:
>
>
> On Sun, 21 Apr 2013, Mattias Gaertner wrote:
>
> > Hi,
> >
> > On one of my Linux machines GetCurrentDir returns '', when the working
> > directory is a samba share.
> > Is this a feature or a bug?
>
> It can happen. The linux kernel returns an empty cwd in some cases.
> The FPC code tries to work its way up from '.' in such a case.
>
> I just tried, but it gives a correct result in my case.
Maybe as fallback it can use the environment variable PWD?
Mattias
More information about the fpc-pascal
mailing list