diff options
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r-- | networking/ftpd.c | 4 |
1 files changed, 1 insertions, 3 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> */ |