Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
eb14feac
Commit
eb14feac
authored
23 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
provisions for user-supplied permissions
parent
f00f86bf
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servers/slapd/daemon.c
+4
-1
4 additions, 1 deletion
servers/slapd/daemon.c
with
4 additions
and
1 deletion
servers/slapd/daemon.c
+
4
−
1
View file @
eb14feac
...
...
@@ -486,6 +486,9 @@ static Listener * slap_open_listener(
int
err
,
addrlen
=
0
;
struct
sockaddr
**
sal
,
**
psal
;
int
socktype
=
SOCK_STREAM
;
/* default to COTS */
#ifdef LDAP_PF_LOCAL
mode_t
perms
=
S_IRWXU
;
#endif
rc
=
ldap_url_parse
(
url
,
&
lud
);
...
...
@@ -693,7 +696,7 @@ static Listener * slap_open_listener(
#ifdef LDAP_PF_LOCAL
case
AF_LOCAL
:
{
char
*
addr
=
((
struct
sockaddr_un
*
)
*
sal
)
->
sun_path
;
if
(
chmod
(
addr
,
S_IRWXU
)
<
0
)
{
if
(
chmod
(
addr
,
perms
)
<
0
)
{
int
err
=
sock_errno
();
#ifdef NEW_LOGGING
LDAP_LOG
((
"connection"
,
LDAP_LEVEL_INFO
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment