Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion libr/io/p/io_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,18 @@ static RIOMMapFileObj *mmap_create(RIO *io, const char *filename, int perm, int
RIOMMapFileObj *mmo = R_NEW0 (RIOMMapFileObj);
if (r_str_startswith (filename, "file://")) {
filename += strlen ("file://");
mmo->rawio = false; // causes test_io_buf to fail if set to true
} else if (r_str_startswith (filename, "stdio://")) {
filename += strlen ("stdio://");
mmo->rawio = true;
} else if (r_str_startswith (filename, "nocache://")) {
mmo->rawio = true;
mmo->nocache = true;
} else {
// TODO later: mmo->rawio = true;
mmo->rawio = true;
}
if (mmo->nocache) {
// TODO later: mmo->rawio = true;
filename += strlen ("nocache://");
}
mmo->filename = strdup (filename);
Expand Down
Loading