Hurd: fix fdatasync/fsync if the fd does not support file_sync
authorPino Toscano <toscano.pino@tiscali.it>
Mon, 29 Oct 2012 18:35:56 +0000 (19:35 +0100)
committerPino Toscano <toscano.pino@tiscali.it>
Mon, 29 Oct 2012 18:35:56 +0000 (19:35 +0100)
commit94ce799f82a1d3b7453b1942016f91334c838b85
tree71d72c0ee1517df4455f3cc9ec83631a3411f621
parent8bece75210704b1c667087f9c2b71af64a68cb53
Hurd: fix fdatasync/fsync if the fd does not support file_sync

Handle the case of the fd port implementing a stub (EOPNOTSUPP),
properly returning EINVAL.
ChangeLog
sysdeps/mach/hurd/fdatasync.c
sysdeps/mach/hurd/fsync.c