mirror of
https://github.com/Drop-OSS/drop-app
synced 2026-08-27 22:23:04 -04:00
convert to more sensible permission schema
This commit is contained in:
parent
f6cd7c3d1f
commit
e504c003b1
1 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ struct ManifestChunk {
|
|||
#[derive(Deserialize)]
|
||||
struct ManifestRecord {
|
||||
chunks: Vec<ManifestChunk>,
|
||||
permissions: Vec<bool>,
|
||||
permissions: u32,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
|
|
@ -71,7 +71,7 @@ pub fn unpack() -> Result<(), Error> {
|
|||
#[cfg(unix)]
|
||||
{
|
||||
let mut file_permissions = file_handle.metadata().unwrap().permissions();
|
||||
file_permissions.set_mode(generate_permissions(value.permissions));
|
||||
file_permissions.set_mode(value.permissions);
|
||||
file_handle.set_permissions(file_permissions).unwrap();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue