Ticket #316 (closed defect: fixed)

Opened 3 months ago

Last modified 2 months ago

inconsistent code in src/daemon/caps.*

Reported by: rafael2k Assigned to: lennart
Priority: normal Milestone: 0.9.11
Component: daemon Severity: normal
Keywords: Cc:

Description

Patch URL: http://svn.sarava.org/filedetails.php?repname=slackbuilds&path=%2Fmedia%2Fsound%2Fpulseaudio%2Fpulseaudio-0.9.10.diff

Plain Patch:

--- src/daemon/caps.h.old 2008-06-29 20:37:31.000000000 -0300 +++ src/daemon/caps.h 2008-06-29 20:38:09.000000000 -0300 @@ -25,7 +25,7 @@

***/

void pa_drop_root(void);

-void pa_drop_caps(void); +int pa_drop_caps(void);

int pa_limit_caps(void);

#endif

--- src/daemon/caps.c.old 2008-06-29 20:37:24.000000000 -0300 +++ src/daemon/caps.c 2008-06-29 20:38:07.000000000 -0300 @@ -113,7 +113,7 @@

}

/* Drop all capabilities, effectively becoming a normal user */

-void pa_drop_caps(void) { +int pa_drop_caps(void) {

cap_t caps;

pa_assert_se(prctl(PR_SET_KEEPCAPS, 0, 0, 0, 0) == 0);

Change History

08/15/08 14:45:18 changed by lennart

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 0.9.11.

Fixed in git a while back.