Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

Integration: #2544 say that only the mode is copied to the staging file

aionggc4bd091eeb80
diff --git a/crates/platform/src/staging.rs b/crates/platform/src/staging.rs
index aab309299..2cee86c5e 100644
--- a/crates/platform/src/staging.rs
+++ b/crates/platform/src/staging.rs
@@ -32,9 +32,9 @@ pub fn create_staging(
}
/// [`create_staging`], giving the new file the permissions `keep` on Unix. It is created readable
-/// and writable by its owner only and then given `keep`, so it is never open to more people than
-/// the file it will replace, not even while it is still empty (a handle opened then would keep
-/// reading what is written later).
+/// and writable by its owner only and then given `keep`, so its mode is never more open than that
+/// of the file it will replace, not even while it is still empty (a handle opened then would keep
+/// reading what is written later). Only the mode is copied: the owner and group are the saver's.
fn create_staging_as(
dir: &Path,
name: &str,