bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tar doesn't handle short reads


From: Paul Eggert
Subject: Re: Tar doesn't handle short reads
Date: Tue, 4 Aug 2020 17:03:13 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 8/4/20 4:48 PM, Nikos Tsipinakis wrote:
Given the hesitation to fstat in order to remove the O_NONBLOCK flag, are there
any objections to applying the patches sent in the original email? i.e. re-call
read until the full file has been read.

Simply switching from safe_read to full_read would lose an errno value if there's an I/O error, so that patch alone wouldn't suffice for GNU 'tar'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]