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

respect tree start order at down process

parent 34ea5a56
No related branches found
No related tags found
No related merge requests found
......@@ -280,14 +280,17 @@ int main(int argc, char const *const *argv,char const *const *envp)
}
else redir_fd() ;
}
/** Down process? reverse in that case to respect tree start order*/
if (!what)
if (!sastr_reverse(&contents)) log_dieu(LOG_EXIT_SYS,"reserve tree order") ;
for (;pos < contents.len; pos += strlen(contents.s + pos) + 1)
{
tree.len = 0 ;
ugly.len = 0 ;
char *treename = contents.s + pos ;
if(!stralloc_cats(&tree,treename)) log_die_nomem("stralloc") ;
if(!stralloc_0(&tree)) log_die_nomem("stralloc") ;
......
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