Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
{
struct group *grp;
- grp = (opt_tracing_group != NULL) ?
- (grp = getgrnam(opt_tracing_group)) :
- (grp = getgrnam(default_tracing_group));
+ if (opt_tracing_group) {
+ grp = getgrnam(opt_tracing_group);
+ } else {
+ grp = getgrnam(default_tracing_group);
+ }
if (!grp) {
return -1;
} else {
*/
static int check_existing_daemon(void)
{
- int ret;
-
if (access(client_unix_sock_path, F_OK) < 0 &&
access(apps_unix_sock_path, F_OK) < 0)
return 0;
static int set_permissions(void)
{
int ret;
- struct group *grp;
gid_t gid;
gid = allowed_group();