From 02572ff089dcefed1e2e25f420be975f1ee7340c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 22 Jan 2024 19:59:09 +0100 Subject: Cygwin: seekdir: don't set errno Commit 3f3bd1010455 ("* Throughout, use __try/__except/__endtry blocks [...]") introduced setting EINVAL, marked as "Diagnosis". The reason for this is lost in time and space, but looks very much like a debug helper which was supposed to be removed before release. It's rather pointless, so remove it. Fixes: 3f3bd1010455 ("* Throughout, use __try/__except/__endtry blocks [...]") Signed-off-by: Corinna Vinschen --- winsup/cygwin/dir.cc | 1 - 1 file changed, 1 deletion(-) 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 -- cgit v1.2.3