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

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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)
  •  

    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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code