helpGNU Core Utilities - Support: sr #107695, chroot.c missing HAVE_SETGROUPS...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

sr #107695: chroot.c missing HAVE_SETGROUPS check

Submitted by:  Ilya Lazarev <valeskas>
Submitted on:  Tue 24 May 2011 01:13:33 PM UTC  
 
Category: NonePriority: 5 - Normal
Severity: 3 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenOperating System: None

Tue 24 May 2011 01:13:33 PM UTC, original submission:

bad workaround:

diff --git a/src/chroot.c b/src/chroot.c
index 95c227b..f61ce0f 100644
--- a/src/chroot.c
+++ b/src/chroot.c
@@ -101,8 +101,10 @@ set_additional_groups (char const *groups)

if (ret == 0)
{
+#ifdef HAVE_SETGROUPS
ret = setgroups (n_gids, gids);
if (ret)
+#endif
error (0, errno, _("failed to set additional groups"));
}

Ilya Lazarev <valeskas>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by valeskas (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup