Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
62646396
...
62646396b031ead023196feda7eea63d14075f8e
authored
2001-12-28 22:42:55 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Reset the user privileges in case popauth is installed setuid.
1 parent
7f2497fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
pop3d/popauth.c
pop3d/popauth.c
View file @
6264639
...
...
@@ -270,12 +270,15 @@ action_create (struct action_data *ap)
char
buf
[
256
];
int
line
=
0
;
/* Make sure we have proper privileges if popauth is setuid */
setuid
(
getuid
());
if
(
ap
->
input_name
)
{
fp
=
fopen
(
ap
->
input_name
,
"r"
);
if
(
!
fp
)
{
mu_error
(
"can't
create
%s: %s"
,
ap
->
input_name
,
strerror
(
errno
));
mu_error
(
"can't
open
%s: %s"
,
ap
->
input_name
,
strerror
(
errno
));
return
1
;
}
}
...
...
Please
register
or
sign in
to post a comment