aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/sed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c
index c1ee7502a..19e768355 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -1338,7 +1338,7 @@ int sed_main(int argc UNUSED_PARAM, char **argv)
1338 nonstdoutfd = mkstemp(G.outname); 1338 nonstdoutfd = mkstemp(G.outname);
1339 if (-1 == nonstdoutfd) 1339 if (-1 == nonstdoutfd)
1340 bb_perror_msg_and_die("can't create temp file %s", G.outname); 1340 bb_perror_msg_and_die("can't create temp file %s", G.outname);
1341 G.nonstdout = fdopen(nonstdoutfd, "w"); 1341 G.nonstdout = xfdopen_for_write(nonstdoutfd);
1342 1342
1343 /* Set permissions/owner of output file */ 1343 /* Set permissions/owner of output file */
1344 fstat(fileno(file), &statbuf); 1344 fstat(fileno(file), &statbuf);