summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authormischief <mischief@offblast.org>2017-04-21 15:09:50 -0700
committermischief <mischief@offblast.org>2017-04-21 15:09:50 -0700
commit5ef9330b6f0e0320fb55cb93e2f22fe9956a24c9 (patch)
tree2919dfa5b8739c5be6f6494a12c17faf8a747157 /sys
parentccdb4fca83a91a0eab3c9bc4c5146917307c4862 (diff)
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
Diffstat (limited to 'sys')
-rw-r--r--sys/src/cmd/nusb/ptp/ptp.c2
1 files changed, 1 insertions, 1 deletions
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 {