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

 
 

You are not allowed to post comments on this tracker with your current authentication 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:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Operating 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
  • -email is unavailable- added by valeskas (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.3