summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-11-22 17:22:59 +0000
committerChristopher Faylor <me@cgf.cx>2003-11-22 17:22:59 +0000
commit876083f32e5cb04a9318466bb8d239d4a2f735ef (patch)
treef737c2abd22db3a819e38f911f879d851b71ff41
parent759a097e72f42d8c834b9de64affe1975e591930 (diff)
downloadcygnal-876083f32e5cb04a9318466bb8d239d4a2f735ef.tar.gz
cygnal-876083f32e5cb04a9318466bb8d239d4a2f735ef.tar.bz2
cygnal-876083f32e5cb04a9318466bb8d239d4a2f735ef.zip
* dcrt0.cc (check_sanity_and_sync): Correct api major version check so that
newer dlls will work with older apps but not vice versa.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/dcrt0.cc4
2 files changed, 7 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 5903c32b6..4a87af0e9 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-22 Christopher Faylor <cgf@redhat.com>
+
+ * dcrt0.cc (check_sanity_and_sync): Correct api major version check so
+ that newer dlls will work with older apps but not vice versa.
+
2003-11-21 Christopher Faylor <cgf@redhat.com>
* sem.cc: Always include signal.h to handle SIGSYS raise when
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 693868cf7..2418e8bb9 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -436,8 +436,8 @@ check_sanity_and_sync (per_process *p)
p->magic_biscuit, SIZEOF_PER_PROCESS);
/* Complain if incompatible API changes made */
- if (p->api_major != cygwin_version.api_major)
- api_fatal ("cygwin DLL and APP are out of sync -- API version mismatch %d < %d",
+ if (p->api_major > cygwin_version.api_major)
+ api_fatal ("cygwin DLL and APP are out of sync -- API version mismatch %d > %d",
p->api_major, cygwin_version.api_major);
if (CYGWIN_VERSION_DLL_MAKE_COMBINED (p->dll_major, p->dll_minor) <=