Skip to content

Commit 2b9987f

Browse files
committed
fix(libfuse): fix logic error in stat64_ignore_enoent
1 parent 2675626 commit 2b9987f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

project/libfuse-fs/src/overlayfs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl RealInode {
168168
Ok(v1) => Ok(Some(v1)),
169169
Err(e) => match e.raw_os_error() {
170170
Some(raw_error) => {
171-
if raw_error != libc::ENOENT || raw_error != libc::ENAMETOOLONG {
171+
if raw_error == libc::ENOENT || raw_error == libc::ENAMETOOLONG {
172172
return Ok(None);
173173
}
174174
Err(e)

project/libfuse-fs/src/unionfs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl RealInode {
168168
Ok(v1) => Ok(Some(v1)),
169169
Err(e) => match e.raw_os_error() {
170170
Some(raw_error) => {
171-
if raw_error != libc::ENOENT || raw_error != libc::ENAMETOOLONG {
171+
if raw_error == libc::ENOENT || raw_error == libc::ENAMETOOLONG {
172172
return Ok(None);
173173
}
174174
Err(e)

0 commit comments

Comments
 (0)