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

be sure to have the real length of the directory to copy

parent 204ee18d
No related branches found
No related tags found
No related merge requests found
......@@ -123,11 +123,15 @@ void parse_module(resolve_service_t *res, resolve_service_t *ares, unsigned int
auto_strings(copy, SS_SERVICE_ADMDIR, name) ;
copylen = strlen(copy) ;
} else {
if (!set_ownerhome_stack(copy))
log_dieusys(LOG_EXIT_SYS, "unable to find the home directory of the user") ;
copylen = strlen(copy) ;
auto_strings(copy + copylen, SS_SERVICE_USERDIR, name) ;
}
......@@ -167,8 +171,6 @@ void parse_module(resolve_service_t *res, resolve_service_t *ares, unsigned int
log_dieusys(LOG_EXIT_SYS,"copy: ", dirname, " to: ", copy) ;
}
copylen = strlen(copy) ;
auto_strings(copy + copylen, "/", ainsta) ;
/** remove the original service frontend file inside the copied directory
......
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