www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17167] New: dmd fails to write to file with 6 or more ".." in

https://issues.dlang.org/show_bug.cgi?id=17167

          Issue ID: 17167
           Summary: dmd fails to write to file with 6 or more ".." in the
                    path
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: atila.neves gmail.com

I saw this while running dub on Windows:

Error: Error writing file
'..\..\..\..\..\..\AppData\Roaming\dub\packages\taggedalgebraic-0.10.5\taggedalgebraic\.dub\build\library-debug-windows-x86-dmd_2073-20BD164B4B4CA7B99E316352127B8128\taggedalgebraic.lib'

If I move the source directory up one directory this stops happening (i.e., dmd
would write the output library to
'..\..\..\..\..\AppData\Roaming\dub\packages\taggedalgebraic-0.10.5\taggedalgebraic\.dub\build\library-debug-windows-x86-dmd_2073-20BD164B4B4CA7B99E316352127B8128\taggedalgebraic.lib'
instead, and successfully)

--
Feb 09 2017