[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-buildsystem
Subject: dcop/iceauth msvc fix
From: michael () drueing ! de (=?iso-8859-1?Q?Michael_Dr=FCing?=)
Date: 2006-02-19 2:05:01
Message-ID: 000901c634f8$e5405490$0100a8c0 () cyberstorm ! com
[Download RAW message or body]
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)
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic