aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/eh2.d
diff options
context:
space:
mode:
authorCiaran Woodward <ciaranwoodward@xmos.com>2025-02-12 17:57:32 +0000
committerCiaran Woodward <ciaranwoodward@xmos.com>2025-02-25 14:58:15 +0000
commitf2cc668e2b0c75d8baaf1b754d9a311084508db3 (patch)
treea49321c844211bcfa8c1a36a232defdbc7fe8306 /ld/testsuite/ld-elf/eh2.d
parent6693696a7dac44f2f80e89d2d0c4bebfb4543b59 (diff)
downloadgdb-master.zip
gdb-master.tar.gz
gdb-master.tar.bz2
Fix mkdir_recursive on windows when CWD is rootHEADmaster
On windows, when creating a directory with an absolute path, mkdir_recursive would start by trying to make 'C:'. On windows, this has a special meaning, which is "the current directory on the C drive". So the first thing it tries to do is create the current directory. Most of the time, this fails with EEXIST, so the function continues as expected. However if the current directory is C:/, trying to create that causes EPERM, which causes the function to prematurely terminate. (The same applies for any drive letter.) This patch resolves this issue, by skipping the drive letter so that it is never sent to the mkdir call. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'ld/testsuite/ld-elf/eh2.d')
0 files changed, 0 insertions, 0 deletions