aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/strtorx.c
diff options
context:
space:
mode:
authorChris Denton <chris@chrisdenton.dev>2025-03-10 21:08:13 +0000
committerCorinna Vinschen <corinna@vinschen.de>2025-03-17 19:58:40 +0100
commitf74dc93c6359d7821db4166cf03a3748983d721b (patch)
tree5b56f53a40b963e4795c7eca503c60df0c293f66 /newlib/libc/stdlib/strtorx.c
parent5ec497dc80bcb7ad78cc07bb919b2624b361f017 (diff)
downloadnewlib-f74dc93c6359d7821db4166cf03a3748983d721b.zip
newlib-f74dc93c6359d7821db4166cf03a3748983d721b.tar.gz
newlib-f74dc93c6359d7821db4166cf03a3748983d721b.tar.bz2
fix native symlink spawn passing wrong arg0
Currently when starting a process from bash via a native symlink, argv[0] is set to the realpath of the executable and not to the link name. This patch fixes it so the path of the symlink is seen instead. The cause is a path conversion in perhaps_suffix which follows native symlinks. Hence the fix this patch uses is to add PC_SYM_NOFOLLOW_REP when calling path_conv::check to prevent that. Fixes: be371651146c ("* path.cc (path_conv::check): Don't follow reparse point symlinks if PC_SYM_NOFOLLOW_REP flag is set.") Signed-off-by: Chris Denton <chris@chrisdenton.dev>
Diffstat (limited to 'newlib/libc/stdlib/strtorx.c')
0 files changed, 0 insertions, 0 deletions