We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3647c34 commit 83fb4c4Copy full SHA for 83fb4c4
library/std/src/sys/unix/fs/dir_fd.rs
@@ -245,7 +245,7 @@ mod remove_dir_all_xat {
245
let mut stat = unsafe { mem::zeroed() };
246
cvt(unsafe { fstat(fd.as_raw_fd(), &mut stat) })?;
247
// Make sure that the reopened directory has the same inode as when we visited it descending
248
- // the directory tree. More detailed risk analysis TBD.
+ // the directory tree.
249
if self.dev != stat.st_dev || self.ino != stat.st_ino {
250
return Err(io::Error::new(
251
io::ErrorKind::Uncategorized,
0 commit comments