absolutify target stdout/stderr/stdin paths based on working directory

This commit is contained in:
Ryan Fleury
2025-05-19 18:56:13 -07:00
parent 862e0ef882
commit 54325828b2
2 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ path_absolute_dst_from_relative_dst_src(Arena *arena, String8 dst, String8 src)
{
String8 result = dst;
PathStyle dst_style = path_style_from_str8(dst);
if(dst_style == PathStyle_Relative)
if(dst.size != 0 && dst_style == PathStyle_Relative)
{
Temp scratch = scratch_begin(&arena, 1);
String8 dst_from_src_absolute = push_str8f(scratch.arena, "%S/%S", src, dst);