Bug 13413 – dmd does not follow symlink when searching for dmd.conf

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2014-09-01T16:13:00Z
Last change time
2014-09-04T13:50:54Z
Keywords
pull
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2014-09-01T16:13:56Z
DMD simply uses it's args[0] as executable location which does not work correctly when dmd is a symlink.
Comment #1 by code — 2014-09-01T16:45:24Z
Comment #2 by github-bugzilla — 2014-09-02T02:01:36Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9cca69aab858a794c751174fa4277b308088b3a0 fix Issue 13413 - dmd does not follow symlink when searching for dmd.conf - first search argv0 in PATH then resolve symbolic links https://github.com/D-Programming-Language/dmd/commit/70ec83412d766e6fb7c1f9295f9ac7f29a0428f4 Merge pull request #3941 from MartinNowak/fix13413 fix Issue 13413 - dmd does not follow symlink when searching for dmd.conf
Comment #3 by github-bugzilla — 2014-09-04T13:50:54Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ad6cd779573a8f2591eaccd7fbacd54cf861661b Merge pull request #3941 from MartinNowak/fix13413 fix Issue 13413 - dmd does not follow symlink when searching for dmd.conf