Skip to content

Commit

Permalink
Merge branch 'config-missing-ifdef' into 'master'
Browse files Browse the repository at this point in the history
[usb_moded] Add missing ifdef for sailfishaccesscontrol

See merge request mer-core/usb-moded!66
  • Loading branch information
spiiroin committed Sep 22, 2020
2 parents 66dcc87 + 89f6a0c commit ebe0c73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/usb_moded-config.c
Expand Up @@ -1108,10 +1108,12 @@ int config_is_roaming_not_allowed(void)
*/
bool config_user_clear(uid_t uid)
{
#ifdef SAILFISH_ACCESS_CONTROL
if (uid < MIN_ADDITIONAL_USER || uid > MAX_ADDITIONAL_USER) {
log_err("Invalid uid value: %d\n", uid);
return false;
}
#endif

GKeyFile *active_ini = g_key_file_new();
config_load_dynamic_config(active_ini);
Expand Down

0 comments on commit ebe0c73

Please sign in to comment.