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

adapt to 66 tool new interface

parent bef06459
No related branches found
No related tags found
No related merge requests found
...@@ -477,8 +477,8 @@ void write_control(char const *scandir,char const *live, char const *filename, i ...@@ -477,8 +477,8 @@ void write_control(char const *scandir,char const *live, char const *filename, i
if (!BOOT) { if (!BOOT) {
if (!auto_buf(&b, if (!auto_buf(&b,
EXECLINE_BINPREFIX "foreground { " SS_BINPREFIX "66-all -v3 -l ", EXECLINE_BINPREFIX "foreground { " SS_BINPREFIX "66 -v3 -l ",
live," down }\n")) live," tree down }\n"))
log_die_nomem("buffer") ; log_die_nomem("buffer") ;
} }
...@@ -500,14 +500,14 @@ void write_control(char const *scandir,char const *live, char const *filename, i ...@@ -500,14 +500,14 @@ void write_control(char const *scandir,char const *live, char const *filename, i
break ; break ;
case TERM: case TERM:
if (!BOOT) if (!BOOT)
if (!auto_buf(&b, SS_BINPREFIX "66-scanctl -l ",live," stop\n")) if (!auto_buf(&b, SS_BINPREFIX "66 -l ",live," scanctl stop\n"))
log_die_nomem("buffer") ; log_die_nomem("buffer") ;
break ; break ;
case QUIT: case QUIT:
if (!BOOT) if (!BOOT)
if (!auto_buf(&b, SS_BINPREFIX "66-scanctl -l ",live," quit\n")) if (!auto_buf(&b, SS_BINPREFIX "66 -l ",live," scanctl quit\n"))
log_die_nomem("buffer") ; log_die_nomem("buffer") ;
break ; break ;
...@@ -659,7 +659,7 @@ static void create_service_fdholder(char const *scandir) ...@@ -659,7 +659,7 @@ static void create_service_fdholder(char const *scandir)
auto_strings(dst, scandir, "/", SS_FDHOLDER, "/run") ; auto_strings(dst, scandir, "/", SS_FDHOLDER, "/run") ;
// -1 openwritenclose_unsafe do not accept closed string // -1 openwritenclose_unsafe do not accept closed string
if(!openwritenclose_unsafe(dst, run, runlen - 1)) if (!openwritenclose_unsafe(dst, run, strlen(run) - 1))
log_dieusys(LOG_EXIT_SYS, "write: ", dst) ; log_dieusys(LOG_EXIT_SYS, "write: ", dst) ;
if (chmod(dst, 0755) < 0) if (chmod(dst, 0755) < 0)
......
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