[pulseaudio-commits] r1170 - /trunk/src/daemon/caps.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sat Jul 29 08:34:36 PDT 2006


Author: lennart
Date: Sat Jul 29 17:34:36 2006
New Revision: 1170

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1170&root=pulseaudio&view=rev
Log:
fix two typos (pierre, have you been sleeping? next time please the comments wrong but the code right, not the other way round! ;-))

Modified:
    trunk/src/daemon/caps.c

Modified: trunk/src/daemon/caps.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/daemon/caps.c?rev=1170&root=pulseaudio&r1=1169&r2=1170&view=diff
==============================================================================
--- trunk/src/daemon/caps.c (original)
+++ trunk/src/daemon/caps.c Sat Jul 29 17:34:36 2006
@@ -82,7 +82,7 @@
     cap_value_t nice_cap = CAP_SYS_NICE;
 
     /* Only drop caps when called SUID */
-    if (getuid() != 0)
+    if (getuid() == 0)
         return 0;
 
     caps = cap_init();
@@ -112,7 +112,7 @@
     int r = -1;
 
     /* Only drop caps when called SUID */
-    if (getuid() != 0)
+    if (getuid() == 0)
         return 0;
 
     caps = cap_init();




More information about the pulseaudio-commits mailing list