From 3b00243682962fec4f78f03d96cdded730cae38b Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 1 Oct 2018 09:18:09 +0200 Subject: Remove length check on UDID argument to support newer devices --- src/ifuse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; } -- cgit v1.1-32-gdbae