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:
parent
ccdb4fca83
commit
5ef9330b6f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue