Skip to content

Commit

Permalink
Remove length check on UDID argument to support newer devices
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Oct 1, 2018
1 parent df048a1 commit 3b00243
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ifuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ static void print_usage()
fprintf(stderr, "Usage: " PACKAGE_NAME " MOUNTPOINT [OPTIONS]\n");
fprintf(stderr, "Mount directories of an iOS device locally using fuse.\n\n");
fprintf(stderr, " -o opt,[opt...]\tmount options\n");
fprintf(stderr, " -u, --udid UDID\tmount specific device by its 40-digit device UDID\n");
fprintf(stderr, " -u, --udid UDID\tmount specific device by UDID\n");
fprintf(stderr, " -h, --help\t\tprint usage information\n");
fprintf(stderr, " -V, --version\t\tprint version\n");
fprintf(stderr, " -d, --debug\t\tenable libimobiledevice communication debugging\n");
Expand Down Expand Up @@ -800,8 +800,8 @@ int main(int argc, char *argv[])
return EXIT_FAILURE;
}

if (opts.device_udid && strlen(opts.device_udid) != 40) {
fprintf(stderr, "Invalid device UDID specified, length needs to be 40 characters\n");
if (opts.device_udid && !*opts.device_udid) {
fprintf(stderr, "ERROR: UDID must not be empty\n");
return EXIT_FAILURE;
}

Expand Down

0 comments on commit 3b00243

Please sign in to comment.