File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -644,9 +644,9 @@ fn recursive_rmdir_toctou() {
644
644
// Test for time-of-check to time-of-use issues.
645
645
//
646
646
// Scenario:
647
- // The attacker wants to get directory contents deleted, to which he does not have access.
648
- // He has a way to get a privileged Rust binary call `std::fs::remove_dir_all()` on a
649
- // directory he controls , e.g. in his home directory.
647
+ // The attacker wants to get directory contents deleted, to which they do not have access.
648
+ // They have a way to get a privileged Rust binary call `std::fs::remove_dir_all()` on a
649
+ // directory they control , e.g. in their home directory.
650
650
//
651
651
// The POC sets up the `attack_dest/attack_file` which the attacker wants to have deleted.
652
652
// The attacker repeatedly creates a directory and replaces it with a symlink from
Original file line number Diff line number Diff line change @@ -980,7 +980,7 @@ pub mod fast {
980
980
unsafe fn try_initialize < F : FnOnce ( ) -> T > ( & self , init : F ) -> Option < & ' static T > {
981
981
// SAFETY: See comment above (this function doc).
982
982
if !mem:: needs_drop :: < T > ( ) || unsafe { self . try_register_dtor ( ) } {
983
- // SAFETY: See comment above (his function doc).
983
+ // SAFETY: See comment above (this function doc).
984
984
Some ( unsafe { self . inner . initialize ( init) } )
985
985
} else {
986
986
None
You can’t perform that action at this time.
0 commit comments