Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
23
Issues
23
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
60201ae8
Commit
60201ae8
authored
Apr 09, 2015
by
Daniel Salzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: fix server.user parsing
parent
562f8af7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/knot/conf/conf.c
src/knot/conf/conf.c
+3
-1
No files found.
src/knot/conf/conf.c
View file @
60201ae8
...
...
@@ -1318,7 +1318,7 @@ void conf_user(
conf_val_t
val
=
conf_get
(
conf
,
C_SRV
,
C_USER
);
if
(
val
.
code
==
KNOT_EOK
)
{
c
onst
char
*
user
=
conf_str
(
&
val
);
c
har
*
user
=
strdup
(
conf_str
(
&
val
)
);
// Search for user:group separator.
char
*
sep_pos
=
strchr
(
user
,
':'
);
...
...
@@ -1342,6 +1342,8 @@ void conf_user(
}
else
{
log_error
(
"invalid user name '%s'"
,
user
);
}
free
(
user
);
}
*
uid
=
new_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