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
b089c26d
Commit
b089c26d
authored
1 year ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
users can view the output of the command, not a script
parent
fcc38a49
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/lib66/exec/ssexec_boot.c
+1
-1
1 addition, 1 deletion
src/lib66/exec/ssexec_boot.c
src/lib66/exec/ssexec_status.c
+2
-5
2 additions, 5 deletions
src/lib66/exec/ssexec_status.c
src/lib66/exec/ssexec_tree_status.c
+1
-1
1 addition, 1 deletion
src/lib66/exec/ssexec_tree_status.c
with
4 additions
and
7 deletions
src/lib66/exec/ssexec_boot.c
+
1
−
1
View file @
b089c26d
...
@@ -581,7 +581,7 @@ int ssexec_boot(int argc, char const *const *argv, ssexec_t *info)
...
@@ -581,7 +581,7 @@ int ssexec_boot(int argc, char const *const *argv, ssexec_t *info)
if
(
mount
(
"tmpfs"
,
fs
,
"tmpfs"
,
MS_NODEV
|
MS_NOSUID
,
"mode=0755"
)
==
-
1
)
if
(
mount
(
"tmpfs"
,
fs
,
"tmpfs"
,
MS_NODEV
|
MS_NOSUID
,
"mode=0755"
)
==
-
1
)
sulogin
(
"mount: "
,
fs
)
;
sulogin
(
"mount: "
,
fs
)
;
}
}
/** respect the path before run
66-xxx
API*/
/** respect the path before run API*/
if
(
setenv
(
"PATH"
,
path
,
1
)
==
-
1
)
sulogin
(
"set initial PATH: "
,
path
)
;
if
(
setenv
(
"PATH"
,
path
,
1
)
==
-
1
)
sulogin
(
"set initial PATH: "
,
path
)
;
/** create scandir */
/** create scandir */
{
{
...
...
This diff is collapsed.
Click to expand it.
src/lib66/exec/ssexec_status.c
+
2
−
5
View file @
b089c26d
...
@@ -960,11 +960,8 @@ int ssexec_status(int argc, char const *const *argv, ssexec_t *info)
...
@@ -960,11 +960,8 @@ int ssexec_status(int argc, char const *const *argv, ssexec_t *info)
if
(
r
<
0
)
if
(
r
<
0
)
log_dieusys
(
LOG_EXIT_SYS
,
"get information of service: "
,
svname
,
" -- please make a bug report"
)
;
log_dieusys
(
LOG_EXIT_SYS
,
"get information of service: "
,
svname
,
" -- please make a bug report"
)
;
if
(
!
r
||
r
==
STATE_FLAGS_FALSE
)
{
if
(
!
r
||
r
==
STATE_FLAGS_FALSE
)
/** nothing to do */
log_die
(
"service: "
,
svname
,
" is not parsed -- try to parse it using '66 parse "
,
svname
,
"'"
)
;
log_1_warn
(
"service: "
,
svname
,
" is not parsed -- try to parse it using '66 parse "
,
svname
,
"'"
)
;
goto
freed
;
}
if
(
!
resolve_read_g
(
wres
,
info
->
base
.
s
,
svname
))
if
(
!
resolve_read_g
(
wres
,
info
->
base
.
s
,
svname
))
log_dieusys
(
LOG_EXIT_SYS
,
"read resolve file of: "
,
svname
)
;
log_dieusys
(
LOG_EXIT_SYS
,
"read resolve file of: "
,
svname
)
;
...
...
This diff is collapsed.
Click to expand it.
src/lib66/exec/ssexec_tree_status.c
+
1
−
1
View file @
b089c26d
...
@@ -107,7 +107,7 @@ static void info_display_enabled(char const *field,char const *treename)
...
@@ -107,7 +107,7 @@ static void info_display_enabled(char const *field,char const *treename)
{
{
int
enabled
=
tree_isenabled
(
pinfo
->
base
.
s
,
treename
)
;
int
enabled
=
tree_isenabled
(
pinfo
->
base
.
s
,
treename
)
;
if
(
enabled
<
0
)
if
(
enabled
<
0
)
log_dieu
(
LOG_EXIT_
ZERO
,
"read resolve file of: "
,
treename
)
;
log_dieu
(
LOG_EXIT_
SYS
,
"read resolve file of: "
,
treename
)
;
if
(
NOFIELD
)
info_display_field_name
(
field
)
;
if
(
NOFIELD
)
info_display_field_name
(
field
)
;
if
(
!
bprintf
(
buffer_1
,
"%s%s%s"
,
enabled
?
log_color
->
valid
:
log_color
->
warning
,
enabled
?
"yes"
:
"no"
,
log_color
->
off
))
if
(
!
bprintf
(
buffer_1
,
"%s%s%s"
,
enabled
?
log_color
->
valid
:
log_color
->
warning
,
enabled
?
"yes"
:
"no"
,
log_color
->
off
))
...
...
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