ref: ac79ca7f705b719415fe52c4e8fbed21a0b53fdc
parent: 88172260f83fbe90d096eeccb2d01a15d30e3078
author: mischief <mischief@offblast.org>
date: Fri Apr 21 11:09:50 EDT 2017
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
--- a/sys/src/cmd/nusb/ptp/ptp.c
+++ b/sys/src/cmd/nusb/ptp/ptp.c
@@ -555,7 +555,7 @@
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 {--
⑨