From ee4c19844bd0dd90f66069edf722af0b339a3c73 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 14 Jan 2025 10:43:10 +0100 Subject: [PATCH] windows: Don't set mode(0) when syncing directory --- src/block/manager.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/block/manager.rs b/src/block/manager.rs index 40b177a2..4532cacd 100644 --- a/src/block/manager.rs +++ b/src/block/manager.rs @@ -792,11 +792,7 @@ impl BlockManagerLocked { // Now, we do an fsync on the containing directory, to ensure that the rename // is persisted properly. See: // http://thedjbway.b0llix.net/qmail/syncdir.html - let dir = fs::OpenOptions::new() - .read(true) - .mode(0) - .open(directory) - .await?; + let dir = fs::OpenOptions::new().read(true).open(directory).await?; dir.sync_all().await?; drop(dir); }