Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11 from plundstr/master
[devlock] Do not check devicelock in ACTDEAD. JB#15041
  • Loading branch information
Pekka Lundstrom committed Jan 21, 2014
2 parents 84cd5ea + 416e7e0 commit bc6c12e
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 bc6c12e

Please sign in to comment.