diff options
Diffstat (limited to 'src/commands/set_mode.rs')
-rw-r--r-- | src/commands/set_mode.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/set_mode.rs b/src/commands/set_mode.rs index ee7efd8..56be5e5 100644 --- a/src/commands/set_mode.rs +++ b/src/commands/set_mode.rs @@ -51,7 +51,8 @@ impl SetMode { let mut mode: u32 = 0; for (i, ch) in s.chars().enumerate() { if ch == LIBC_PERMISSION_VALS[i].1 { - mode |= LIBC_PERMISSION_VALS[i].0; + let val: u32 = LIBC_PERMISSION_VALS[i].0.into(); + mode |= val; } } unix::set_mode(entry.path.as_path(), mode); |