Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Ruderich
passt-mac
Commits
951f41ad
Commit
951f41ad
authored
Jul 17, 2016
by
Lukas Braun
Committed by
Simon Ruderich
Aug 29, 2016
Browse files
slsm: print empty string if app is NULL
parent
e13159c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
security/slsm/tree.c
View file @
951f41ad
...
...
@@ -239,7 +239,7 @@ ssize_t slsm_serialize_subtree(struct slsm_str *buf, struct slsm_str *path_buf,
for
(
i
=
0
;
i
<
t
->
rules_used
;
i
++
)
{
ret
=
slsm_str_append
(
buf
,
"p=%s%ca=%s%cm=%u%cf=%u%c"
,
path_buf
->
buf
,
'\0'
,
t
->
rules
[
i
].
app
,
'\0'
,
t
->
rules
[
i
].
app
?
t
->
rules
[
i
].
app
:
""
,
'\0'
,
t
->
rules
[
i
].
perms
.
mode
,
'\0'
,
t
->
rules
[
i
].
perms
.
flags
,
'\0'
);
if
(
ret
)
...
...
Write
Preview
Supports
Markdown
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