not returning getWorkingDirectory value in Linux, solved

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
ondrew
Posts: 20
Joined: Fri Oct 03, 2003 2:24 pm
Location: Czech Republic

not returning getWorkingDirectory value in Linux, solved

Post by ondrew »

Hi,

the getWorkingDirectory function always returns null under Linux. In CFileSystem.cpp, line 105-108 is

Code: Select all

#ifdef LINUX
        getcwd(WorkingDirectory, (size_t)FILE_SYSTEM_MAX_PATH);
#endif
and should be

Code: Select all

#ifdef LINUX
        getcwd(WorkingDirectory, (size_t)FILE_SYSTEM_MAX_PATH);
        return WorkingDirectory;
#endif
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

This has been reported several times. Last time by me two weeks ago:

http://irrlicht.sourceforge.net/phpBB2/ ... hp?p=37393

Hopefully Niko will fix it sometime. :)
It is like it is. And because it is like it is, things are like they are.
ondrew
Posts: 20
Joined: Fri Oct 03, 2003 2:24 pm
Location: Czech Republic

Post by ondrew »

Damn, I was so happy to find a bug and a fix, that I didn't even search the forum to check if it hasn't been already submitted :oops:
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Np, at least I got reminded of that bug, so I'll fix it in the next release. :)
Post Reply