~whynothugo/vdirsyncer-rs

302be5cc7b2c755b91311cc84a89f8f36f8733cd — Hugo Osvaldo Barrera a month ago e7d754b
Don't create storage files as executable

This was a mixup on my part when using named constants. Just use 0o600
which is a lot easier to read.

Reported-By: Morgan Hill
1 files changed, 1 insertions(+), 1 deletions(-)

M vstorage/src/atomic.rs
M vstorage/src/atomic.rs => vstorage/src/atomic.rs +1 -1
@@ 67,7 67,7 @@ impl AtomicFile {
            dir.as_fd(),
            &temp_name,
            OFlags::WRONLY | OFlags::CREATE | OFlags::EXCL | OFlags::CLOEXEC,
            Mode::RWXU,
            Mode::from(0o600),
        )
        .map(|fd| File::from(std::fs::File::from(fd)))
        .map_err(|e| Error::new(ErrorKind::Io, e))?;