User names are displayed as dots on the java provisioning gui.

MASAO TAKAHASHI <[email protected]> Fri, 5 Aug 2005 13:58:30 +0900
Newsgroups gmane.comp.lib.vovida.vocal
Organization KANNO WORKS CO., LTD.
Message-ID <[email protected]>
SUBJ: User names are displayed as dots on the java provisioning gui.

SYMPTOM
	User names are displayed as dots on the java provisioning gui.
ENVIRONMENT
	DELL 4600C
		Pentium4 2.6GHz
		512MB memory
		82865G chip set
	Fedora Core 3
		kernel-2.6.12-1.1437_FC5
	JDK-1.5.0
CAUSE
	The  return value of the readdir function
	on FC3 is differed from one of RH9. 
SOLUTION
	editing a file as follows.
 util/io/VFileSystem.cxx
 --- /home/mtakahashi/vocal/util/io/VFileSystem.cxx
 2002-09-06 17:58:15.000000000 +0900 +++ VFileSystem-new.cxx
 2005-07-27 14:11:14.000000000 +0900 @@ -357,12 +357,23 @@
      }
 
      struct dirent * dirp = readdir(dir);
 -    dirp = readdir(dir);  // eat the "."
 -    dirp = readdir(dir);  // eat the ".."
 +    string tempstring;
 +    
 +    /****************************************
 +     * I000 comments out below statements   *
 +     * cause, first entry is "1000.xml"     *
 +     *                                      *
 +     ****************************************/
      while ( dirp )
      {
 -        list.push_back( string(dirp->d_name) );
 -        dirp = readdir(dir);
 +		/****************************************
 +	 	 * I000 discarding ".", ".."entry	*
 +	 	 ****************************************/
 +		tempstring = string(dirp->d_name);
 +		if((tempstring != ".") && (tempstring != "..")){
 +			list.push_back(tempstring);
 +		}
 +		dirp = readdir(dir); // next
     }
 
     int err = closedir(dir);

	

--------------
MASAO TAKAHASHI
KANNO WORKS CO., LTD.
Planning Division
E-Mail: [email protected]
Phone : 093-521-9531

_______________________________________________
vocal mailing list
[email protected]
To unsubscribe, please go to http://www.vovida.org/mailman/listinfo/vocal