From b5a4a20712e21db39909a7e0690a9b68de0533f3 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Wed, 15 Sep 2010 14:03:08 -0500 Subject: [PATCH] Change filesystem detection to fstypename comparison instead of naked integer --- eyefi-freebsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eyefi-freebsd.c b/eyefi-freebsd.c index 9981c84..77a420a 100644 --- a/eyefi-freebsd.c +++ b/eyefi-freebsd.c @@ -47,7 +47,7 @@ char *locate_eyefi_mount(void) } for(i = 0; i < numfs; i++) { - if(fsbuf[i].f_type != 5) continue; // Not MSDOS + if(strncmp(fsbuf[i].f_fstypename, "msdosfs", 7) != 0) continue; // Not MSDOS char *file = eyefi_file_on(REQM, fsbuf[i].f_mntonname); debug_printf(2, "looking for EyeFi file here: '%s'\n", file); -- 2.42.0