Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

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:
index.php?t=getfile&id=2109&private=0
And how must to be:
index.php?t=getfile&id=2110&private=0

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 Go to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

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:
index.php?t=getfile&id=2109&private=0
And how must to be:
index.php?t=getfile&id=2110&private=0

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

Previous Topic: "FileSel based utility functions" seems out of date
Next Topic: FEATURE: Desktop / home folder shortcuts in FileSel
Goto Forum:
  


Current Time: Thu Mar 28 09:50:36 CET 2024

Total time taken to generate the page: 0.01086 seconds