[File] [PATCH] handle full disk space errors as failure
Christos Zoulas
christos at zoulas.com
Mon Apr 18 21:42:57 UTC 2022
Committed, but where is the final flush() done?
christos
> On Apr 13, 2022, at 4:36 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
More information about the File
mailing list