#497 Permission checks in Poco::File not correct for root

Platform_Specific
closed
3
2012-11-10
2012-01-24
No

The shortcut to check for the root user and assume all permissions in Poco::File::canRead(), Poco::File::canWrite() etc is flawed, as the file may belong to root and has e.g. the write permission bit cleared. The order of checks should be changed such that user and group permissions are checked first, then check for root user, and finally other.

Discussion

  • fixed in 1.4.4, rev. 1926

     
    • status: open --> closed