We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_executable()
1 parent a4801fe commit db44c6eCopy full SHA for db44c6e
gix-fs/src/lib.rs
@@ -77,10 +77,10 @@ pub struct Stack {
77
}
78
79
#[cfg(unix)]
80
-/// Returns whether a a file has the executable permission set.
+/// Returns whether a file has the executable permission set.
81
pub fn is_executable(metadata: &std::fs::Metadata) -> bool {
82
use std::os::unix::fs::MetadataExt;
83
- (metadata.mode() & 0o100) != 0
+ (metadata.mode() & 0o111) != 0
84
85
86
/// Classifiers for IO-errors.
0 commit comments