Skip to content

Commit

Permalink
Fix faulty error reporting for write-protected mmap
Browse files Browse the repository at this point in the history
Fixes incorrect logic checking if an mmapped file is writeable.
  • Loading branch information
run4flat authored and mohawk2 committed Jan 7, 2023
1 parent 953383e commit eed8415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion threads.pd
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ sub share_pdls {
croak("$to_croak you do not have permissions to read the "
. "associated header file") unless -r "$to_store.hdr";
croak("$to_croak you do not have write permissions for that "
. "file") if -w $to_store;
. "file") unless -w $to_store;
# Default: the file does not exist
croak("$to_croak the file does not exist");
}
Expand Down

0 comments on commit eed8415

Please sign in to comment.