ref: 5ef9330b6f0e0320fb55cb93e2f22fe9956a24c9
parent: ccdb4fca83a91a0eab3c9bc4c5146917307c4862
author: mischief <[email protected]>
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 {