projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
novi upstream verzije 2.8.3
[ossec-hids.git]
/
src
/
util
/
agent_control.c
diff --git
a/src/util/agent_control.c
b/src/util/agent_control.c
index
e48a9a8
..
be3b537
100755
(executable)
--- a/
src/util/agent_control.c
+++ b/
src/util/agent_control.c
@@
-105,6
+105,7
@@
int main(int argc, char **argv)
break;
case 'i':
info_agent++;
break;
case 'i':
info_agent++;
+ // no break;
case 'u':
if(!optarg)
{
case 'u':
if(!optarg)
{
@@
-137,6
+138,7
@@
int main(int argc, char **argv)
}
agent_id = optarg;
restart_agent = 1;
}
agent_id = optarg;
restart_agent = 1;
+ break;
case 'a':
restart_all_agents = 1;
break;
case 'a':
restart_all_agents = 1;
break;
@@
-155,7
+157,7
@@
int main(int argc, char **argv)
{
ErrorExit(USER_ERROR, ARGV0, user, group);
}
{
ErrorExit(USER_ERROR, ARGV0, user, group);
}
-
+
/* Setting the group */
if(Privsep_SetGroup(gid) < 0)
/* Setting the group */
if(Privsep_SetGroup(gid) < 0)