mainGNU 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

Submitter:  Ilya Lazarev <valeskas>
Submitted:  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

Discussion

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>

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    History

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.16.
    Corresponding source code