From: Jan P. <jp...@us...> - 2007-04-22 19:26:20
|
Update of /cvsroot/e-p-i-c/org.epic.debug/src/org/epic/debug/cgi/server In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv18114/src/org/epic/debug/cgi/server Modified Files: EpicCgiHandler.java Log Message: Use real paths to avoid skipped breakpoints when the CGI location contains symlinks. Index: EpicCgiHandler.java =================================================================== RCS file: /cvsroot/e-p-i-c/org.epic.debug/src/org/epic/debug/cgi/server/EpicCgiHandler.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- EpicCgiHandler.java 28 Feb 2007 20:36:02 -0000 1.2 +++ EpicCgiHandler.java 22 Apr 2007 19:26:16 -0000 1.3 @@ -254,7 +254,8 @@ commandList.addAll(exArgs.getProgramArgumentsL()); } - commandList.add(cgiFile.getAbsolutePath()); + try { commandList.add(cgiFile.getCanonicalPath()); } + catch (IOException e) { commandList.add(cgiFile.getAbsolutePath()); } // Look at the query and check for an = // If no '=', then use '+' as an argument delimiter @@ -389,7 +390,7 @@ try { cgi = Runtime.getRuntime().exec( - command, env, new File(cgiFile.getParent())); + command, env, new File(cgiFile.getParentFile().getCanonicalPath())); DataInputStream in = new DataInputStream( new BufferedInputStream(cgi.getInputStream())); |