Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Eric Vidal
66
Commits
b5498454
Commit
b5498454
authored
5 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
fix stralloc_0 behavior
parent
ce797e5e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/66/66-intree.c
+6
-5
6 additions, 5 deletions
src/66/66-intree.c
with
6 additions
and
5 deletions
src/66/66-intree.c
+
6
−
5
View file @
b5498454
...
...
@@ -103,10 +103,10 @@ static inline void info_help (void)
" name: displays the name of the tree
\n
"
" init: displays a boolean value of the initialization state
\n
"
" enabled: displays a boolean value of the enable state
\n
"
" start: displays
a
list of tree started before
\n
"
" start: displays
the
list of tree
(s)
started before
\n
"
" current: displays a boolean value of the current state
\n
"
" allowed: displays a list of allowed user to use the tree
\n
"
" symlink: displays the target of tree's symlinks
\n
"
" symlink
s
: displays the target of tree's symlinks
\n
"
" contents: displays the contents of the tree
\n
"
"
\n
"
;
...
...
@@ -292,7 +292,7 @@ static void info_display_allow(char const *field, char const *treename)
// force to close the string
auto_strings
(
tmp
,
src
.
s
)
;
auto_string_from
(
tmp
,
src
.
len
,
treename
,
SS_RULES
)
;
if
(
!
sastr_dir_get
(
&
sa
,
tmp
,
""
,
S_IFREG
))
log_dieusys
(
LOG_EXIT_SYS
,
"get permissions of tree at: "
,
tmp
)
;
...
...
@@ -564,10 +564,11 @@ int main(int argc, char const *const *argv, char const *const *envp)
if
(
treename
)
{
if
(
!
stralloc_cats
(
&
src
,
treename
)
||
!
stralloc_0
(
&
src
))
log_die_nomem
(
"stralloc"
)
;
if
(
!
auto_stra
(
&
src
,
treename
))
log_die_nomem
(
"stralloc"
)
;
if
(
!
scan_mode
(
src
.
s
,
S_IFDIR
))
log_dieusys
(
LOG_EXIT_SYS
,
"find tree: "
,
src
.
s
)
;
src
.
len
=
newlen
;
if
(
!
stralloc_0
(
&
src
))
log_die_nomem
(
"stralloc"
)
;
src
.
len
--
;
info_display_all
(
treename
,
what
)
;
}
else
...
...
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