Skip to content

Commit

Permalink
[devlock] Do not check devicelock in ACTDEAD. JB#15041
Browse files Browse the repository at this point in the history
  • Loading branch information
Pekka Lundstrom committed Jan 21, 2014
1 parent fbc10dc commit 416e7e0
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/usb_moded.c
Expand Up @@ -285,12 +285,16 @@ void set_usb_mode(const char *mode)
int export = 1;

/* check if we are allowed to export system contents 0 is unlocked */
export = usb_moded_get_export_permission();

if(export)
/* In ACTDEAD export is always ok */
if(is_in_user_state())
{
log_debug("Secondary device lock check failed. Not setting mode!\n");
goto end;
export = usb_moded_get_export_permission();

if(export)
{
log_debug("Secondary device lock check failed. Not setting mode!\n");
goto end;
}
}
#endif /* MEEGOLOCK */

Expand Down

0 comments on commit 416e7e0

Please sign in to comment.