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

parser_write:remove 66-execl from command line in run file

parent 1b293647
No related branches found
No related tags found
No related merge requests found
......@@ -886,18 +886,11 @@ int write_exec(sv_alltype *sv, sv_exec *exec,char const *file,char const *dst,in
{
if (!stralloc_cats(&shebang, "#!" EXECLINE_SHEBANGPREFIX "execlineb -P\n")) retstralloc(0,"write_exec") ;
}
/** command to execute */
if (!stralloc_cats(&runuser, SS_BINPREFIX "66-execl ")) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&runuser, keep.s+exec->exec)) retstralloc(0,"write_exec") ;
break ;
case CUSTOM:
if (!stralloc_cats(&shebang, "#!")) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&shebang, keep.s+exec->shebang)) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&shebang,"\n")) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&runuser, keep.s+exec->exec)) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&runuser,"\n")) retstralloc(0,"write_exec") ;
break ;
default:
VERBO3 strerr_warnw3x("unknow ", get_keybyid(exec->build)," build type") ;
......@@ -910,6 +903,8 @@ int write_exec(sv_alltype *sv, sv_exec *exec,char const *file,char const *dst,in
/** close shebang */
if (!stralloc_0(&shebang)) retstralloc(0,"write_exec") ;
/** close command */
if (!stralloc_cats(&runuser, keep.s+exec->exec)) retstralloc(0,"write_exec") ;
if (!stralloc_cats(&runuser,"\n")) retstralloc(0,"write_exec") ;
if (!stralloc_0(&runuser)) retstralloc(0,"write_exec") ;
/** build the file*/
......
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