commit 9c8ec4892fed58fb168c63a358d8ad33a0987523
parent 7635272738912ebf7fe2b852e0a216e137616d66
Author: Nihal Jere <nihal@nihaljere.xyz>
Date: Thu, 21 Oct 2021 21:29:34 -0500
npm-agent: set npm-core stdin FILE to write
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/npm-agent.c b/npm-agent.c
@@ -142,7 +142,7 @@ run_core()
default:
close(stdinpipe[0]);
- FILE *stdinfile = fdopen(stdinpipe[1], "r");
+ FILE *stdinfile = fdopen(stdinpipe[1], "w");
if (!stdinfile) {
perror("failed to open npm-core stdin as FILE");
close(stdinpipe[1]);