[PATCH 1/1] tar: Increase robustness of file descriptor handling

Denys Vlasenko vda.linux at googlemail.com
Sat Aug 4 19:06:43 UTC 2018


Indeed, let's use dup()

On Sat, Aug 4, 2018 at 7:56 PM, Tobias Schramm <tobleminer at gmail.com> wrote:
> Uh, good catch. I wasn't thinking straight.
>
> Can we be sure fd3 is not data.rd though? I think your version might
> trash data.rd.
> I think we should use dup(tar_fd) to get a free fd.
>
> Cheers.
> Tobias


More information about the busybox mailing list