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

do not try to list user directory if it doesn't exist yet

parent a4feeede
No related branches found
No related tags found
No related merge requests found
......@@ -350,10 +350,8 @@ fi
## logger notification
if $s6log_notify; then
echo disable notify
s6log_notify='0'
else
echo enable notify
s6log_notify='1'
fi
......
......@@ -224,6 +224,14 @@ int main(int argc, char const *const *argv,char const *const *envp)
if (!argc)
{
if (info.owner)
{
/** check if user system dir already exist */
if (!scan_mode(info.base.s,S_IFDIR)) {
log_info(DRYRUN ? drun : "","No trees exist yet -- Nothing to do") ;
goto exit ;
}
}
if (!sastr_dir_get(&satree,system,SS_BACKUP + 1,S_IFDIR))
log_dieusys(LOG_EXIT_SYS,"get list of trees at: ",system) ;
......
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