diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc index a181ce58c..d67ac02d9 100644 --- a/winsup/cygwin/dir.cc +++ b/winsup/cygwin/dir.cc @@ -235,7 +235,6 @@ seekdir (DIR *dir, long loc) dir->__flags &= dirent_info_mask; ((fhandler_base *) dir->__fh)->seekdir (dir, loc); } - set_errno (EINVAL); /* Diagnosis */ } __except (EFAULT) {} __endtry