Skip to content

Commit afa1bd2

Browse files
committed
docs: Permissions.readonly() also ignores root user special permissions
The root user can write to files without any (write) access bits set. But this is not taken into account by `std::fs::Permissions.readonly()`.
1 parent 2e8db5e commit afa1bd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/fs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1564,8 +1564,8 @@ impl Permissions {
15641564
///
15651565
/// # Note
15661566
///
1567-
/// This function does not take Access Control Lists (ACLs) or Unix group
1568-
/// membership into account.
1567+
/// This function does not take Access Control Lists (ACLs), Unix group
1568+
/// membership or Unix root user special permissions into account.
15691569
///
15701570
/// # Windows
15711571
///

0 commit comments

Comments
 (0)