Ticket #563 (closed defect: fixed)
mototool --delete works every time regardless of security question
|Reported by:||felixmoeller||Owned by:||andrewb|
http://www.opensync.org/browser/plugins/moto-sync/mototool and the version from the 0.2x branch delete all entries on the phone regardless of security question! ("About to delete all event & contact entries from the phone! Are you sure? [yn]")
The relevant code is:
57 print 'Are you sure? [yn] ', 58 if sys.stdin.read(1).lower() != 'y': 59 print 'Operation aborted' 60 return
I think there should be a sys.exit(0/1) instead of the return.