[File] [PATCH] handle full disk space errors as failure
Christos Zoulas
christos at zoulas.com
Sat Mar 19 14:12:01 UTC 2022
Committed, thanks!
christos
> On Mar 17, 2022, at 5:13 PM, Dirk Müller <dirk at dmllr.de> wrote:
>
> do a final fflush of stdout even in buffered mode
> so that a ENOSPACE is caught and propagated as an exit
> code 1 so that the surrounding logic can detect and
> handle it as a failure rather than silently misbehaving.
>
> reproducer is
>
> file somefile > /dev/full && echo exit code was 0
> <0001-handle-full-disk-space-errors-as-failure.patch>--
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20220319/e518a640/attachment.asc>
More information about the File
mailing list