dcop/iceauth msvc fix

Michael Drüing michael at drueing.de
Sun Feb 19 13:34:33 CET 2006


OK, here's a revised patch:

Index: dcop/KDE-ICE/authutil.c
===================================================================
--- dcop/KDE-ICE/authutil.c     (revision 511164)
+++ dcop/KDE-ICE/authutil.c     (working copy)
@@ -187,7 +187,7 @@
     {
        if (creat_fd == -1)
        {
-           creat_fd = creat (creat_name, 0666);
+           creat_fd = creat (creat_name, S_IREAD | S_IWRITE);

            if (creat_fd == -1)
            {


--Michael 

> -----Original Message-----
> From: Thiago Macieira [mailto:thiago at kde.org] 
> Sent: Sunday, February 19, 2006 1:24 PM
> To: kde-buildsystem at kde.org
> Cc: Michael Drüing
> Subject: Re: dcop/iceauth msvc fix
> 
> Michael Drüing wrote:
> >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.
> 
> Change it to use constants in all platforms. S_IREAD and S_IWRITE are 
> available.
> 
> >+#ifdef WIN32
> >+           creat_fd = creat (creat_name, _S_IREAD | _S_IWRITE);
> >+#else
> >            creat_fd = creat (creat_name, 0666);
> >+#endif
> 
> 
> -- 
>   Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
>     PGP/GPG: 0x6EF45358; fingerprint:
>     E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
> 
> 4. And æfter se scieppend ingelogode, he wrát "cenn", ac eala! se 
> rihtendgesamnung andswarode "cenn: ne wát hú cennan 'eall'. Ástynt."
> 



More information about the Kde-buildsystem mailing list