summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2018-10-01 09:18:09 +0200
committerGravatar Nikias Bassen2018-10-01 09:18:09 +0200
commit3b00243682962fec4f78f03d96cdded730cae38b (patch)
tree7bd53e71856ff9a46b30e7e29fdc04f16e180e2f /src
parentdf048a1d07628a6a02ed77a8dc0f64930b78acee (diff)
downloadifuse-3b00243682962fec4f78f03d96cdded730cae38b.tar.gz
ifuse-3b00243682962fec4f78f03d96cdded730cae38b.tar.bz2
Remove length check on UDID argument to support newer devices
Diffstat (limited to 'src')
-rw-r--r--src/ifuse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index 9a5a812..dff2037 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -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");
@@ -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;
}