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

correct creation of logger destination directory

parent 3f1a5880
No related branches found
No related tags found
No related merge requests found
...@@ -494,7 +494,8 @@ int write_logger(sv_alltype *sv, sv_execlog *log,char const *name, char const *d ...@@ -494,7 +494,8 @@ int write_logger(sv_alltype *sv, sv_execlog *log,char const *name, char const *d
} }
size_t destlen = get_rlen_until(destlog.s,'/',destlog.len) ; size_t destlen = get_rlen_until(destlog.s,'/',destlog.len) ;
destlog.len = destlen ; destlog.len = destlen ;
if (!stralloc_0(&destlog)) retstralloc(0,"write_logger") ;
r = dir_search(destlog.s,svname,S_IFDIR) ; r = dir_search(destlog.s,svname,S_IFDIR) ;
if (r < 0) if (r < 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