Skip to content

Commit

Permalink
handle DT_UNKNOWN
Browse files Browse the repository at this point in the history
fixes #16
  • Loading branch information
Mic92 committed Oct 28, 2020
1 parent 1548376 commit ddf143a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ nix = "0.19.*"

[dependencies.cntr-fuse]
git = "https://github.com/Mic92/cntr-fuse"
rev = "fa781f13102279c723c650fcdea316457c4500cf"
rev = "9e855af2ffc56a61becdec29fa2524f90b9ae3f7"
default-features = false

[dependencies.concurrent-hashmap]
Expand Down
1 change: 1 addition & 0 deletions src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ fn set_time(

fn dtype_kind(dtype: u8) -> FileType {
match dtype {
libc::DT_UNKNOWN => FileType::Unknown,
libc::DT_BLK => FileType::BlockDevice,
libc::DT_CHR => FileType::CharDevice,
libc::DT_DIR => FileType::Directory,
Expand Down

0 comments on commit ddf143a

Please sign in to comment.