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
8e39b5dc
...
8e39b5dc91a2000488ac3dad5a0433fe25c5a52b
authored
2002-02-14 09:20:25 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fixed indentation.
1 parent
efe91b09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
imap4d/authenticate.c
imap4d/authenticate.c
View file @
8e39b5d
...
...
@@ -54,20 +54,20 @@ imap4d_authenticate (struct imap4d_command *command, char *arg)
if
(
username
)
{
struct
passwd
*
pw
=
mu_getpwnam
(
username
);
if
(
pw
==
NULL
)
return
util_finish
(
command
,
RESP_NO
,
"User name or passwd rejected"
);
struct
passwd
*
pw
=
mu_getpwnam
(
username
);
if
(
pw
==
NULL
)
return
util_finish
(
command
,
RESP_NO
,
"User name or passwd rejected"
);
if
(
pw
->
pw_uid
>
0
&&
!
mu_virtual_domain
)
setuid
(
pw
->
pw_uid
);
if
(
pw
->
pw_uid
>
0
&&
!
mu_virtual_domain
)
setuid
(
pw
->
pw_uid
);
homedir
=
mu_normalize_path
(
strdup
(
pw
->
pw_dir
),
"/"
);
/* FIXME: Check for errors. */
chdir
(
homedir
);
namespace_init
(
pw
->
pw_dir
);
syslog
(
LOG_INFO
,
"User '%s' logged in"
,
username
);
return
0
;
homedir
=
mu_normalize_path
(
strdup
(
pw
->
pw_dir
),
"/"
);
/* FIXME: Check for errors. */
chdir
(
homedir
);
namespace_init
(
pw
->
pw_dir
);
syslog
(
LOG_INFO
,
"User '%s' logged in"
,
username
);
return
0
;
}
return
util_finish
(
command
,
RESP_NO
,
...
...
Please
register
or
sign in
to post a comment