dcop/iceauth msvc fix
Michael Drüing
michael at drueing.de
Sun Feb 19 03:05:01 CET 2006
Hi!
This small patch fixes dcop/iceauth for the MSVC debug builds. Without it,
the debug runtime throws an assertion on one of the many parameter sanity
checks.
Next I'll have a look at dcopserver, it asserts on a write to an
already-closed file descriptor (ready[] in dcopserver.cpp).
--Michael
Index: dcop/KDE-ICE/authutil.c
===================================================================
--- dcop/KDE-ICE/authutil.c (revision 511164)
+++ dcop/KDE-ICE/authutil.c (working copy)
@@ -187,7 +187,11 @@
{
if (creat_fd == -1)
{
+#ifdef WIN32
+ creat_fd = creat (creat_name, _S_IREAD | _S_IWRITE);
+#else
creat_fd = creat (creat_name, 0666);
+#endif
if (creat_fd == -1)
{
More information about the Kde-buildsystem
mailing list