Skip to content
Snippets Groups Projects
Commit b089c26d authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

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
...@@ -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 */
{ {
......
...@@ -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) ;
......
...@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment