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

prefer to check flag init instead of flag state

parent f7fe6a51
No related branches found
No related tags found
No related merge requests found
...@@ -511,14 +511,14 @@ int tree_unsupervise(char const *tree, char const *treename,uid_t owner,char con ...@@ -511,14 +511,14 @@ int tree_unsupervise(char const *tree, char const *treename,uid_t owner,char con
if (ss_state_check(state,name)) if (ss_state_check(state,name))
{ {
if (!ss_state_read(&sta,state,name)) strerr_diefu2sys(111,"read state file of: ",name) ; if (!ss_state_read(&sta,state,name)) strerr_diefu2sys(111,"read state file of: ",name) ;
st = sta.state ; st = sta.init ;
} }
if (pres->type == CLASSIC && st) if (pres->type == CLASSIC && !st)
{ {
if (!stra_add(&nclassic,name)) strerr_diefu2sys(111,"append services selection with: ",name) ; if (!stra_add(&nclassic,name)) strerr_diefu2sys(111,"append services selection with: ",name) ;
} }
else if (pres->type >= BUNDLE && st) else if (pres->type >= BUNDLE && !st)
{ {
if (!stra_add(&nrc,name)) strerr_diefu2sys(111,"append services selection with: ",name) ; if (!stra_add(&nrc,name)) strerr_diefu2sys(111,"append services selection with: ",name) ;
} }
......
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