]> git.ipfire.org Git - thirdparty/util-linux.git/commit - libblkid/src/probe.c
libblkid: check fsync() return code
authorKarel Zak <kzak@redhat.com>
Tue, 19 Apr 2022 07:44:07 +0000 (09:44 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 19 Apr 2022 07:44:07 +0000 (09:44 +0200)
commit133a0d70f637b4f4e4337811e452153b04f2bdcf
tree85c389b8d305488b41ba147b20ab33cd6f28de17
parente928e8ed61996d46be4bfd36367c0e1c798f84d7
libblkid: check fsync() return code

Since 39f5af25982d8b0244000e92a9d0e0e6557d0e17 libblkid uses
O_NONBLOCK. Now it's more obvious that check fsync() (and close())
return value after write() is always a good idea ...

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2074486
Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/probe.c
misc-utils/wipefs.c