sys: process_locker: explicitly don't truncate the lock file

clippy rightfully complains about a create() with an unspecified
truncation behavior. This file has no contents so let's just not
truncate it in case we ever want to also have data in it...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2024-06-28 11:18:04 +02:00
parent b2dd0117d1
commit 1f9cb87576

View File

@ -112,6 +112,7 @@ impl ProcessLocker {
.create(true)
.read(true)
.write(true)
.truncate(false)
.open(lockfile)?;
Ok(Arc::new(Mutex::new(Self {