Skip to content

Commit

Permalink
Posix: Do not treat arguments as FilePath
Browse files Browse the repository at this point in the history
  • Loading branch information
mmhat authored and tomjaguarpaw committed Aug 16, 2024
1 parent 302b43a commit 8d73906
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion System/Process/Posix.hs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ createProcess_Internal fun
maybeWith withFilePath mb_cwd $ \pWorkDir ->
maybeWith with mb_child_group $ \pChildGroup ->
maybeWith with mb_child_user $ \pChildUser ->
withMany withFilePath (cmd:args) $ \cstrs ->
withFilePath cmd $ \cmdstr ->
withMany withCString args $ \argstrs -> do
let cstrs = cmdstr : argstrs
withArray0 nullPtr cstrs $ \pargs -> do

fdin <- mbFd fun fd_stdin mb_stdin
Expand Down

0 comments on commit 8d73906

Please sign in to comment.