Skip to content

Commit 7572ca2

Browse files
Fixup call execvpe wrapper instead of LibC.execvpe (#16321)
Fixup for unintended change in #16286. It should've stayed using the `execvpe` wrapper from #16294 Fixes #16286 (comment)
1 parent 4df1548 commit 7572ca2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crystal/system/unix/process.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ struct Crystal::System::Process
354354

355355
::Dir.cd(chdir) if chdir
356356

357-
lock_write { LibC.execvp(*prepared_args) }
357+
lock_write { execvpe(*prepared_args, LibC.environ) }
358358
end
359359

360360
private def self.execvpe(command, argv, envp)

0 commit comments

Comments
 (0)