File: 06_initgroups

package info (click to toggle)
rungetty 1.2-16.1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 300 kB
  • sloc: ansic: 3,494; makefile: 30
file content (16 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Author: Rhonda D'Vine <rhonda@debian.org>	vim:ft=diff:
Description: call initgroups to get supplementary groups for processes
	(BTS #146145)

Index: rungetty-1.2/rungetty.c
===================================================================
--- rungetty-1.2.orig/rungetty.c
+++ rungetty-1.2/rungetty.c
@@ -597,6 +597,7 @@ main (int argc, char **argv)
     mingetty_login (logname, tty);
 
   setgid (u_group->gr_gid);
+  initgroups (user->pw_name, user->pw_gid);
   setuid (user->pw_uid);
 
   if (progpath)