Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
d344e8b4
Commit
d344e8b4
authored
Aug 13, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch from Benoit.Boissinot@ens-lyon.fr to remove getgroups and setgroups
git-svn-id:
https://svn.musicpd.org/mpd/trunk@2028
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
63efaae0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
main.c
src/main.c
+0
-15
No files found.
src/main.c
View file @
d344e8b4
...
...
@@ -230,9 +230,6 @@ void establishListen(Options * options) {
void
changeToUser
(
Options
*
options
)
{
if
(
options
->
usr
&&
strlen
(
options
->
usr
))
{
int
uid
,
gid
;
#ifdef _BSD_SOURCE
gid_t
gid_list
[
NGROUPS_MAX
];
#endif
/* get uid */
struct
passwd
*
userpwd
;
...
...
@@ -258,18 +255,6 @@ void changeToUser(Options * options) {
"of user %s: %s
\n
"
,
options
->
usr
,
strerror
(
errno
));
}
else
if
(
getgroups
(
NGROUPS_MAX
,
gid_list
)
==
-
1
)
{
ERROR
(
"cannot get groups "
"of user %s: %s
\n
"
,
options
->
usr
,
strerror
(
errno
));
exit
(
EXIT_FAILURE
);
}
else
if
(
setgroups
(
NGROUPS_MAX
,
gid_list
)
==
-
1
)
{
ERROR
(
"cannot set groups "
"of user %s: %s
\n
"
,
options
->
usr
,
strerror
(
errno
));
exit
(
EXIT_FAILURE
);
}
#endif
/* set uid */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment