Only put mode bits into mode metadata

This commit is contained in:
Dennis Schwerdel 2017-04-15 17:11:40 +02:00
parent fabfb1dce5
commit 08da056c8a
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ impl Inode {
if meta.file_type().is_symlink() {
inode.symlink_target = Some(try!(fs::read_link(path).map_err(|e| InodeError::ReadLinkTarget(e, path.to_owned()))).to_string_lossy().to_string());
}
inode.mode = meta.st_mode();
inode.mode = meta.st_mode() & 0o7777;
inode.user = meta.st_uid();
inode.group = meta.st_gid();
inode.timestamp = meta.st_mtime();