Home » U++ Library support » FileSel&FileList, Path » bug: FileSel Show folders as programs
bug: FileSel Show folders as programs [message #24409] |
Fri, 15 January 2010 13:17  |
|
Hello Mirek!
After I compiled the latest svn source code i have the following problem:
File select show folders (mounted from network) as programs.
Incorect show:

And how must to be:

I mounted the location in /etc/fstab with this code:
Quote: |
//192.168.24.1/d$ /mnt/ILupascuComp cifs iocharset=utf8,credentials=/etc/cifspw123,dir_mode=0775,gid= 121 0 0
|
Regards,
Ion Lupascu (tojocky).
[Updated on: Fri, 15 January 2010 13:25] Report message to a moderator
|
|
|
Re: bug: FileSel Show folders as programs [message #24471 is a reply to message #24409] |
Mon, 18 January 2010 15:20  |
|
Hello Mirek,
I found the bug:
Please change the following code:
- in file "uppsrc/Core/Path.cpp" start with line 585 change method struct stat& FindFile::Stat() const for linux:
struct stat& FindFile::Stat() const {
if(!statis) {
statis = true;
if(file){
// >>> IonLupascu(tojocky) 2009.01.18: Add function ToSystemCharset
int l_ret = stat(ToSystemCharset(AppendFileName(path, name)), &statf);
// <<< IonLupascu(tojocky) 2009.01.18
}
}
return statf;
}
- In file uppsrc/Core/Core.h start with line 50 (after line "#if defined(PLATFORM_POSIX)") add following code
//>>> IonLupascu (tojocky) 2009.01.18: Add define __USE_FILE_OFFSET64. it is need for large files (>2GB)
#ifndef __USE_FILE_OFFSET64
#define __USE_FILE_OFFSET64
#endif
//<<< IonLupascu (tojocky) 2009.01.18
Regards,
Ion Lupascu (tojocky)
Add: I have attached the patch of this "bug"!
tojocky wrote on Fri, 15 January 2010 14:17 | Hello Mirek!
After I compiled the latest svn source code i have the following problem:
File select show folders (mounted from network) as programs.
Incorect show:

And how must to be:

I mounted the location in /etc/fstab with this code:
Quote: |
//192.168.24.1/d$ /mnt/ILupascuComp cifs iocharset=utf8,credentials=/etc/cifspw123,dir_mode=0775,gid= 121 0 0
|
Regards,
Ion Lupascu (tojocky).
|
[Updated on: Mon, 18 January 2010 16:14] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 25 19:02:41 CEST 2025
Total time taken to generate the page: 0.00653 seconds
|