]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: fsync: Fix EINVAL for block device.
authorTakashi Yano <takashi.yano@nifty.ne.jp>
Sat, 21 Jan 2023 12:33:03 +0000 (21:33 +0900)
committerTakashi Yano <takashi.yano@nifty.ne.jp>
Sun, 22 Jan 2023 10:01:34 +0000 (19:01 +0900)
commitbdb9f5b17339b0d54e408c6d7999e3f387eea6cf
treeae468500f96ff7773c286dbb2c72dc03892d7c8a
parent3123fdeecb5aea4947cb720e52f0a32553751bb4
Cygwin: fsync: Fix EINVAL for block device.

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
winsup/cygwin/release/3.4.6 [new file with mode: 0644]
This page took 0.027917 seconds and 5 git commands to generate.