[PATCH v2] Cygwin: fsync: Fix EINVAL for block device.

Corinna Vinschen corinna-cygwin@cygwin.com
Sun Jan 22 09:01:13 GMT 2023


On Jan 22 09:08, Takashi Yano wrote:
> The commit af8a7c13b516 has a problem that fsync returns EINVAL for
> block device. This patch treats block devices as a special case.
> https://cygwin.com/pipermail/cygwin/2023-January/252916.html
> 
> Fixes: af8a7c13b516 ("Cygwin: fsync: Return EINVAL for special files.")
> Reported-by: Yano Ray <yanorei@hotmail.co.jp>
> Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
> Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
> ---
>  winsup/cygwin/fhandler/base.cc | 3 ++-
>  winsup/cygwin/release/3.4.6    | 5 +++++
>  2 files changed, 7 insertions(+), 1 deletion(-)
>  create mode 100644 winsup/cygwin/release/3.4.6

Thanks, please push.


Corinna


More information about the Cygwin-patches mailing list