Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a876880 authored by Ken Sumrall's avatar Ken Sumrall
Browse files

Fix handle_opendir() in the sdcard daemon

The fuse_open_out structure returned to the kernel by handle_opendir()
was not properly initializing all the fields.  The symptom was recursive
ls (ls -R) failing on the emulated sdcard filesystem, because rewinddir(3)
was failing with ESPIPE.

Bug: 7168594
Change-Id: I56ddfd3453e6aac34fe6e001e88c4c46fb2eb271
parent 9face5ca
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -972,6 +972,8 @@ static int handle_opendir(struct fuse* fuse, struct fuse_handler* handler,
        return -errno;
    }
    out.fh = ptr_to_id(h);
    out.open_flags = 0;
    out.padding = 0;
    fuse_reply(fuse, hdr->unique, &out, sizeof(out));
    return NO_STATUS;
}