Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
access: add back proper --noacl handling, show error when no acl entr…
…ies are present
  • Loading branch information
perexg committed Aug 14, 2014
1 parent c7d2595 commit d327932
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/access.c
Expand Up @@ -836,6 +836,7 @@ access_init(int createdefault, int noacl)
struct timeval tv;
} randseed;

access_noacl = noacl;
if (noacl)
tvhlog(LOG_WARNING, "access", "Access control checking disabled");

Expand Down Expand Up @@ -876,13 +877,16 @@ access_init(int createdefault, int noacl)
"Created default wide open access controle entry");
}

if(!TAILQ_FIRST(&access_entries) && !noacl)
tvherror("access", "No access entries loaded");

/* Load superuser account */

if((m = hts_settings_load("superuser")) != NULL) {
s = htsmsg_get_str(m, "username");
superuser_username = s ? strdup(s) : NULL;
s = htsmsg_get_str(m, "password");
superuser_password =s ? strdup(s) : NULL;
superuser_password = s ? strdup(s) : NULL;
htsmsg_destroy(m);
}
}
Expand Down

0 comments on commit d327932

Please sign in to comment.