Skip to content

Commit

Permalink
Merge pull request #136 from nebel/master
Browse files Browse the repository at this point in the history
Use octal for S_ISVTX sticky bit check
  • Loading branch information
Byron authored Feb 22, 2025
2 parents 74894a8 + dffb80d commit 1704f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/freedesktop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ enum TrashValidity {
fn folder_validity(path: impl AsRef<Path>) -> Result<TrashValidity, FsError> {
/// Mask for the sticky bit
/// Taken from: http://man7.org/linux/man-pages/man7/inode.7.html
const S_ISVTX: u32 = 0x1000;
const S_ISVTX: u32 = 0o1000;

let path = path.as_ref();
let metadata = path.symlink_metadata().map_err(|e| (path.to_owned(), e))?;
Expand Down

0 comments on commit 1704f72

Please sign in to comment.