[PATCH] libbb: More informative "short write" error

Tito farmatito at tiscali.it
Tue Sep 6 06:08:30 UTC 2016



On 09/05/2016 11:30 PM, Denys Vlasenko wrote:
> On Mon, Sep 5, 2016 at 10:46 PM, Tito <farmatito at tiscali.it> wrote:
>> On 09/05/2016 06:49 PM, Lauri Kasanen wrote:
>>>
>>> On Mon, Sep 5, 2016, at 13:18, Denys Vlasenko wrote:
>>>>
>>>> How about just replacing bb_error_msg_and_die()
>>>> with bb_perror_msg_and_die()?
>>>
>>>
>>> $ busybox wget google.com
>>> Connecting to google.com (172.217.20.14:80)
>>> Connecting to www.google.fi (80.239.229.245:80)
>>
>> Hi,
>> isn't "short write" redundant?
>
> No, it is not: it says that some bytes were written.
> As opposed to the situation when no bytes were written,
> error happened right away.
>
Hi,
I haven't time to test it now, but what would the message
be if not even a byte could be written to the device with
no space left?
I suspect it would be the same message.
Ciao,
Tito


More information about the busybox mailing list