aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/ftpd.c4
-rw-r--r--networking/ifupdown.c4
2 files changed, 3 insertions, 5 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c
index 9937cc3ea..df8188cba 100644
--- a/networking/ftpd.c
+++ b/networking/ftpd.c
@@ -691,9 +691,7 @@ handle_dir_common(int opts)
691 /* -n prevents user/groupname display, 691 /* -n prevents user/groupname display,
692 * which can be problematic in chroot */ 692 * which can be problematic in chroot */
693 ls_fd = popen_ls((opts & LONG_LISTING) ? "-l" : "-1"); 693 ls_fd = popen_ls((opts & LONG_LISTING) ? "-l" : "-1");
694 ls_fp = fdopen(ls_fd, "r"); 694 ls_fp = xfdopen_for_read(ls_fd);
695 if (!ls_fp) /* never happens. paranoia */
696 bb_perror_msg_and_die("fdopen");
697 695
698 if (opts & USE_CTRL_CONN) { 696 if (opts & USE_CTRL_CONN) {
699 /* STAT <filename> */ 697 /* STAT <filename> */
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 88d1944da..b16186ec7 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1056,8 +1056,8 @@ static int popen2(FILE **in, FILE **out, char *command, char *param)
1056 /* parent */ 1056 /* parent */
1057 close(infd.rd); 1057 close(infd.rd);
1058 close(outfd.wr); 1058 close(outfd.wr);
1059 *in = fdopen(infd.wr, "w"); 1059 *in = xfdopen_for_write(infd.wr);
1060 *out = fdopen(outfd.rd, "r"); 1060 *out = xfdopen_for_read(outfd.rd);
1061 return pid; 1061 return pid;
1062} 1062}
1063 1063