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

append the absolute path of the version at -V option

parent 4b75ab87
No related branches found
No related tags found
No related merge requests found
......@@ -229,6 +229,11 @@ int ssexec_env(int argc, char const *const *argv,char const *const *envp,ssexec_
if (!ss_resolve_read(&res,sasrc.s,sv))
log_dieusys(LOG_EXIT_SYS,"read resolve file of: ",sv) ;
if (!res.srconf) {
log_1_warn(sv," do not have configuration file") ;
goto freed ;
}
svconf = res.sa.s + res.srconf ;
sasrc.len = 0 ;
......@@ -274,6 +279,10 @@ int ssexec_env(int argc, char const *const *argv,char const *const *envp,ssexec_
log_dieu(LOG_EXIT_SYS,"get versioned directory of: ",svconf) ;
for (pos = 0 ; pos < satmp.len; pos += strlen(satmp.s + pos) + 1)
{
if (buffer_puts(buffer_1, svconf) < 0)
log_dieusys(LOG_EXIT_SYS, "write to stdout") ;
if (buffer_puts(buffer_1, "/") < 0)
log_dieusys(LOG_EXIT_SYS, "write to stdout") ;
if (buffer_puts(buffer_1, satmp.s + pos) < 0)
log_dieusys(LOG_EXIT_SYS, "write to stdout") ;
if (check_current_version(svconf,satmp.s + pos))
......
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