[hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5496: Remove unused USER_HIPD #define and get rid of USER_NOBODY indirection.

  • From: noreply@xxxxxxxxxxxxx
  • To: HIPL core team <hipl-dev@xxxxxxxxxxxxx>
  • Date: Wed, 12 Jan 2011 12:48:36 -0000

------------------------------------------------------------
revno: 5496
committer: Diego Biurrun <diego@xxxxxxxxxx>
branch nick: trunk
timestamp: Mon 2011-01-10 13:58:29 +0100
message:
  Remove unused USER_HIPD #define and get rid of USER_NOBODY indirection.
modified:
  lib/core/capability.c


--
lp:hipl
https://code.launchpad.net/~hipl-core/hipl/trunk

Your team HIPL core team is subscribed to branch lp:hipl.
To unsubscribe from this branch go to 
https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'lib/core/capability.c'
--- lib/core/capability.c       2011-01-11 13:59:46 +0000
+++ lib/core/capability.c       2011-01-10 12:58:29 +0000
@@ -53,9 +53,6 @@
 #include "capability.h"
 
 
-#define USER_NOBODY "nobody"
-#define USER_HIPD "hipd"
-
 /**
  * map a user name such as "nobody" to the corresponding UID number
  *
@@ -128,7 +125,7 @@
 
     HIP_DEBUG("Now PR_SET_KEEPCAPS=%d\n", prctl(PR_GET_KEEPCAPS));
 
-    uid = hip_user_to_uid(USER_NOBODY);
+    uid = hip_user_to_uid("nobody");
     if (uid == -1) {
         HIP_ERROR("User 'nodoby' could not be found\n");
         goto out_err;

Other related posts:

  • » [hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5496: Remove unused USER_HIPD #define and get rid of USER_NOBODY indirection. - noreply