Skip to content

Commit efdc5ea

Browse files
committed
sync: add yet another sync error
fixes ipfs/kubo#6193
1 parent 7523a75 commit efdc5ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/error_posix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func isErrnoNotSupported(err error) bool {
1212
// Operation not supported
1313
syscall.EINVAL, syscall.EROFS, syscall.ENOTSUP,
1414
// File descriptor doesn't support syncing (found on MacOS).
15-
syscall.ENOTTY,
15+
syscall.ENOTTY, syscall.ENODEV,
1616
// MacOS is weird. It returns EBADF when calling fsync on stdout
1717
// when piped.
1818
//

0 commit comments

Comments
 (0)