Abhishek-2808 opened a new pull request, #18746:
URL: https://github.com/apache/nuttx/pull/18746

   In `proxy_fstat()`, when detecting a block driver proxy , the condition that 
sets the write permission bits `(S_IWOTH | S_IWGRP | S_IWUSR)` in the `fstat(`) 
result incorrectly checked `i_ops->read` instead of `i_ops->write`. As a 
result, any block driver proxy that implements read but not write would be 
incorrectly reported as writable by `fstat()`
   
   This is a one-line fix with no behavioural change for any driver that 
implements both `read `and `write `(the common case). Only drivers that 
implement `read `but not `write `are affected, and for them the fix corrects a 
wrong permission report.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to