From 5ef9330b6f0e0320fb55cb93e2f22fe9956a24c9 Mon Sep 17 00:00:00 2001 From: mischief Date: Fri, 21 Apr 2017 15:09:50 -0700 Subject: nusb/ptp: treat any assocation as a directory previously nusb/ptp showed only 'generic folder' association type as directories, but all associations work as directories. tested with LG G5/android 7.0 --- sys/src/cmd/nusb/ptp/ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/cmd/nusb/ptp/ptp.c b/sys/src/cmd/nusb/ptp/ptp.c index 872773a03..8cc000385 100644 --- a/sys/src/cmd/nusb/ptp/ptp.c +++ b/sys/src/cmd/nusb/ptp/ptp.c @@ -555,7 +555,7 @@ getnode(Req *r, uvlong path) x->handle = NUM(path); x->store = GET4(p); x->format = GET2(p+4); - if(x->format == 0x3001 && GET2(p+42) == 1){ + if(x->format == 0x3001){ x->d.qid.type = QTDIR; x->d.mode = DMDIR|0777; } else { -- cgit v1.2.3