From bb067b6ee4828fc2444395d4cfda80831c4721bb Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Mon, 27 Aug 2018 08:27:07 -0700 Subject: Treat the "GARMIN" mount point exactly like the "UEMISSDA" one The logic for finding a mount point for the Garmin FIT devices is basically exactly the same as for the UEMISSDA, even if the rest of the sequence is not the same. Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- core/unix.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/unix.c') diff --git a/core/unix.c b/core/unix.c index a75bcd792..48fd3f467 100644 --- a/core/unix.c +++ b/core/unix.c @@ -161,6 +161,8 @@ int enumerate_devices(device_callback_t callback, void *userdata, int dc_type) while ((getline(&line, &len, file)) != -1) { char *ptr = strstr(line, "UEMISSDA"); + if (!ptr) + ptr = strstr(line, "GARMIN"); if (ptr) { char *end = ptr, *start = ptr; while (start > line && *start != ' ') -- cgit v1.2.3-70-g09d2