[Bug 1924] New: Current working directory truncated for directories > 80 characters

Wine Bugs wine-bugs at winehq.com
Fri Jan 2 04:51:09 CST 2004


http://bugs.winehq.com/show_bug.cgi?id=1924

           Summary: Current working directory truncated for directories > 80
                    characters
           Product: Wine
           Version: 20030911
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: wine-kernel
        AssignedTo: wine-bugs at winehq.com
        ReportedBy: j.visser at valescom.com


A program using wine that resolves the current working directory, i.e. ".",
results in erroneous behaviour if the canonical directory path consists of more
than +/- 80 characters.

This behaviour can be duplicated using wcmd:

- make a deep directory structure: mkdir -p ~/1/2/3/4/5/6.../30
- cd to the end of the last directory, i.e. 30
- start wcmd

What you should see is something like:
F:\home\jevi\1\2\3\4\5\6\7\8\...\30>

What you will be seing is something like:
F:\home\jevi\1\2\3\4\5\6\7\8\..\21>

The current directory path is truncated.

This behaviour can also be duplicated using wine, the windows IBM jdk 1.3.1, and
the following java program:

import java.io.*;

class Main
{
    public final static void 
    main(String[] anArguments)
    throws IOException
    {
        System.out.println(new File(".").getAbsolutePath());
    }
}

This test was performed on fedora core 1 using wine-20031212-1fc1winehq.rpm.

-- 
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list