diff options
author | Nikias Bassen | 2018-10-01 09:13:06 +0200 |
---|---|---|
committer | Nikias Bassen | 2018-10-01 09:13:06 +0200 |
commit | 08d5d4f9c31f15c954fde197858550c776cd800d (patch) | |
tree | 8a69c576b0096a349cc828e70a1ca41366cb7757 | |
parent | 7010311d13951fe28f1dbe86a0d8ccc6e14e8ef6 (diff) | |
download | libideviceactivation-08d5d4f9c31f15c954fde197858550c776cd800d.tar.gz libideviceactivation-08d5d4f9c31f15c954fde197858550c776cd800d.tar.bz2 |
Remove length check on UDID argument to support newer devices
-rw-r--r-- | tools/ideviceactivation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ideviceactivation.c b/tools/ideviceactivation.c index 6fef4fb..35ee066 100644 --- a/tools/ideviceactivation.c +++ b/tools/ideviceactivation.c @@ -49,7 +49,7 @@ static void print_usage(int argc, char **argv) printf(" state\t\t\tquery device about its activation state\n"); printf("\nThe following OPTIONS are accepted:\n"); printf(" -d, --debug\t\tenable communication debugging\n"); - printf(" -u, --udid UDID\ttarget specific device by its 40-digit device UDID\n"); + printf(" -u, --udid UDID\ttarget specific device by UDID\n"); printf(" -s, --service URL\tuse activation webservice at URL instead of default\n"); printf(" -v, --version\t\tprint version information and exit\n"); printf(" -h, --help\t\tprints usage information\n"); @@ -94,7 +94,7 @@ int main(int argc, char *argv[]) } else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--udid")) { i++; - if (!argv[i] || (strlen(argv[i]) != 40)) { + if (!argv[i] || !*argv[i]) { print_usage(argc, argv); return EXIT_FAILURE; } |