From efdc5eab9a650df56a87ff2c14ff1f97f503231e Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Tue, 9 Apr 2019 15:00:50 -0700 Subject: [PATCH] sync: add yet another sync error fixes https://github.com/ipfs/go-ipfs/issues/6193 --- cli/error_posix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/error_posix.go b/cli/error_posix.go index 35015285..d2d6b2bb 100644 --- a/cli/error_posix.go +++ b/cli/error_posix.go @@ -12,7 +12,7 @@ func isErrnoNotSupported(err error) bool { // Operation not supported syscall.EINVAL, syscall.EROFS, syscall.ENOTSUP, // File descriptor doesn't support syncing (found on MacOS). - syscall.ENOTTY, + syscall.ENOTTY, syscall.ENODEV, // MacOS is weird. It returns EBADF when calling fsync on stdout // when piped. //