Index: main.cpp =================================================================== RCS file: /cvsroot/posadis/pos6/pos6/main.cpp,v retrieving revision 1.48 diff -r1.48 main.cpp 260a261,269 > if (groupname[0]) { > struct group *grinfo; > gid_t grid; > grinfo = getgrnam(groupname); > if (!grinfo) throw PException(true, "Cannot switch to unknown group %s", groupname); > grid = grinfo->gr_gid; > if (setgid(grid) != 0) throw PException(true, "Cannot setgid() to %s", groupname); > } > 270,277d278 < if (groupname[0]) { < struct group *grinfo; < gid_t grid; < grinfo = getgrnam(groupname); < if (!grinfo) throw PException(true, "Cannot switch to unknown group %s", groupname); < grid = grinfo->gr_gid; < if (setgid(grid) != 0) throw PException(true, "Cannot setgid() to %s", groupname); < }