[pulseaudio-commits] r1307 - /trunk/src/pulse/context.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Aug 22 00:12:51 PDT 2006


Author: ossman
Date: Tue Aug 22 09:12:50 2006
New Revision: 1307

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1307&root=pulseaudio&view=rev
Log:
Add an ifdef for when we do not have creds.

Modified:
    trunk/src/pulse/context.c

Modified: trunk/src/pulse/context.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulse/context.c?rev=1307&root=pulseaudio&r1=1306&r2=1307&view=diff
==============================================================================
--- trunk/src/pulse/context.c (original)
+++ trunk/src/pulse/context.c Tue Aug 22 09:12:50 2006
@@ -385,11 +385,13 @@
                 /* Only enable SHM if both sides are owned by the same
                  * user. This is a security measure because otherwise
                  * data private to the user might leak. */
-                
+
+#ifdef HAVE_CREDS                
                 const pa_creds *creds;
                 if ((creds = pa_pdispatch_creds(pd)))
                     if (getuid() == creds->uid)
                         pa_pstream_use_shm(c->pstream, 1);
+#endif
             }
 
             reply = pa_tagstruct_command(c, PA_COMMAND_SET_CLIENT_NAME, &tag);




More information about the pulseaudio-commits mailing list