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

be sure to remove live/run/state/uid/treename before a copy

parent 7bba69bb
No related branches found
No related tags found
No related merge requests found
......@@ -185,6 +185,11 @@ int tree_copy_tmp(char const *workdir, ssexec_t *info)
r = scan_mode(saresolve.s,S_IFDIR) ;
if (r < 0) strerr_dief2x(111,resolve," conflicting format") ;
if (r)
{
if (rm_rf(saresolve.s) <0) goto err ;
r = 0 ;
}
if (!r)
{
saresolve.len = newlen ;
......
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