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

Version symlink point to a directory, append the file name

parent da8d8b26
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ int ssexec_env(int argc, char const *const *argv,char const *const *envp,ssexec_
if (!auto_stra(&sasrc,res.sa.s + res.srconf,SS_SYM_VERSION)) log_die_nomem("stralloc") ;
if (sareadlink(&salink,sasrc.s) == -1) log_dieusys(LOG_EXIT_SYS,"readlink: ",sasrc.s) ;
if (!stralloc_0(&salink) ||
if (!auto_stra(&salink,"/",sv) ||
!stralloc_copy(&sasrc,&salink)) log_die_nomem("stralloc") ;
src = sasrc.s ;
stralloc_free(&salink) ;
......
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