Correct errno comparison

This commit is contained in:
kyliwenchong 2022-08-18 10:13:37 +08:00
parent 70e5c981e5
commit 3d25fe7f4c
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 5d38afc8a5b4a2a6e27aad7a1840046e99cd826d Mon Sep 17 00:00:00 2001
From: Andrew Gaul <gaul@google.com>
Date: Mon, 14 Dec 2020 19:16:05 +0900
Subject: [PATCH] Correct errno comparison (#571)
---
lib/fuse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/fuse.c b/lib/fuse.c
index b0f5b30..5f872fa 100755
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -4533,7 +4533,7 @@ static int fuse_session_loop_remember(struct fuse *f)
res = poll(&fds, 1, timeout * 1000);
if (res == -1) {
- if (errno == -EINTR)
+ if (errno == EINTR)
continue;
else
break;
--
2.23.0

View File

@ -2,7 +2,7 @@
Name: fuse3
Version: %{fuse3ver}
Release: 8
Release: 9
Summary: User space File System of fuse3
License: GPL+ and LGPLv2+
URL: http://fuse.sf.net
@ -13,6 +13,7 @@ Patch1: 0001-fix-chown-and-mknod-failed.patch
Patch2: 0002-libfuse-Assign-NULL-to-old-to-avoid-free-it-twice-52.patch
Patch3: 0003-fuse_lowlevel-Move-assert-for-se-before-dereferencin.patch
Patch4: 0004-revert-fuse_daemonize-chdir-to-even-if-not-run.patch
Patch5: 0005-Correct-errno-comparison-571.patch
BuildRequires: libselinux-devel, pkgconfig, systemd-udev, meson, fdupes
BuildRequires: autoconf, automake, libtool, gettext-devel, ninja-build
@ -103,6 +104,9 @@ install -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}
%{_mandir}/man8/*
%changelog
* Thu Aug 18 2022 liwenchong <liwenchong@kylinos.cn> -3.9.2-9
- Correct errno comparison
* Tue Dec 28 2021 yanglongkang <yanglongkang@huawei.com> -3.9.2-8
- correcting Source0 error