| 307 | |
| 308 | /// Chown only if the owner needs to change (avoids slow recursive chown on already-correct dirs). |
| 309 | struct stat st{}; |
| 310 | if (stat(dir.c_str(), &st) == 0 && (st.st_uid != uid || st.st_gid != gid)) |
| 311 | recursiveChown(dir, uid, gid); |
| 312 |
no outgoing calls
no test coverage detected