Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 21821 Details for
Bug 17085
gnump3d-1.0 incorect handles groups
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
grp.h is now included
server.cc.patch (text/plain), 571 bytes, created by
roma1390
on 2003-12-07 09:58:31 UTC
(
hide
)
Description:
grp.h is now included
Filename:
MIME Type:
Creator:
roma1390
Created:
2003-12-07 09:58:31 UTC
Size:
571 bytes
patch
obsolete
>--- gnump3d-1.0/src/server.cc.org 2003-12-07 19:53:51.000000000 +0200 >+++ gnump3d-1.0/src/server.cc 2003-12-07 19:54:21.000000000 +0200 >@@ -44,6 +44,7 @@ > #include <arpa/inet.h> > #include <netinet/in.h> > #include <sys/socket.h> >+#include <grp.h> > > #ifdef HAVE_SIGNAL_H > # include <signal.h> >@@ -336,6 +337,14 @@ > exit(0); > } > >+ /* Set groups. */ >+ if(initgroups(usr->pw_name, usr->pw_gid) == -1 ) >+ { >+ printf("Can't init groups id. %s:%u\n", m_userName.c_str(), >+ usr->pw_gid ); >+ exit(0); >+ } >+ > /* Set id */ > if( setuid(usr->pw_uid) == -1 ) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17085
:
9127
| 21821