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
This commit is contained in:
mischief 2017-04-21 15:09:50 -07:00
parent ccdb4fca83
commit 5ef9330b6f

View file

@ -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 {