revert fuse_daemonize chdir to \ even if not run in background
This commit is contained in:
parent
8f57c50b84
commit
dd983afbc8
34
0002-revert-fuse_daemonize-chdir-to-even-if-not-run.patch
Normal file
34
0002-revert-fuse_daemonize-chdir-to-even-if-not-run.patch
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
From 2b50633a79f77ceec5bdec8e58cad8b78c244073 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lixiaokeng <lixiaokeng@huawei.com>
|
||||||
|
Date: Tue, 30 Nov 2021 17:17:07 +0800
|
||||||
|
Subject: [PATCH] fuse3: revert "fuse_daemonize(): chdir to / even if not
|
||||||
|
running in the background"
|
||||||
|
|
||||||
|
fuse_daemonize(): chdir to "/" even if not running in the background
|
||||||
|
for consistency, but in some cases, we need to use relative-path in
|
||||||
|
foreground, such as the feature nvme-cuse in SPDK 21.01. So we revert
|
||||||
|
this commit.
|
||||||
|
|
||||||
|
Signed-off-by: Lixiaokeng <lixiaokeng@huawei.com>
|
||||||
|
Signed-off-by: Weifeng Su <suweifeng1@huawei.com>
|
||||||
|
Signed-off-by: volcanodragon <linfeilong@huawei.com>
|
||||||
|
---
|
||||||
|
lib/helper.c | 2 --
|
||||||
|
1 file changed, 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/lib/helper.c b/lib/helper.c
|
||||||
|
index 64ff7ad..9c03b79 100644
|
||||||
|
--- a/lib/helper.c
|
||||||
|
+++ b/lib/helper.c
|
||||||
|
@@ -270,8 +270,6 @@ int fuse_daemonize(int foreground)
|
||||||
|
(void) write(waiter[1], &completed, sizeof(completed));
|
||||||
|
close(waiter[0]);
|
||||||
|
close(waiter[1]);
|
||||||
|
- } else {
|
||||||
|
- (void) chdir("/");
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: fuse3
|
Name: fuse3
|
||||||
Version: %{fuse3ver}
|
Version: %{fuse3ver}
|
||||||
Release: 6
|
Release: 2
|
||||||
Summary: User space File System of fuse3
|
Summary: User space File System of fuse3
|
||||||
License: GPL+ and LGPLv2+
|
License: GPL+ and LGPLv2+
|
||||||
URL: http://fuse.sf.net
|
URL: http://fuse.sf.net
|
||||||
@ -10,6 +10,7 @@ Source0: https://github.com/libfuse/libfuse/archive/fuse-%{fuse3ver}.tar.xz
|
|||||||
Source1: fuse.conf
|
Source1: fuse.conf
|
||||||
|
|
||||||
Patch1: 0001-fix-chown-and-mknod-failed.patch
|
Patch1: 0001-fix-chown-and-mknod-failed.patch
|
||||||
|
Patch2: 0002-revert-fuse_daemonize-chdir-to-even-if-not-run.patch
|
||||||
|
|
||||||
BuildRequires: libselinux-devel, pkgconfig, systemd-udev, meson, fdupes
|
BuildRequires: libselinux-devel, pkgconfig, systemd-udev, meson, fdupes
|
||||||
BuildRequires: autoconf, automake, libtool, gettext-devel, ninja-build
|
BuildRequires: autoconf, automake, libtool, gettext-devel, ninja-build
|
||||||
@ -100,6 +101,9 @@ install -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}
|
|||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 30 2021 lixiaokeng <lixiaokeng@huawei.com> -3.10.5-2
|
||||||
|
- revert fuse_daemonize chdir to / even if not run background.
|
||||||
|
|
||||||
* Tue Nov 23 2021 lixiaokeng <lixiaokeng@huawei.com> -3.10.5-1
|
* Tue Nov 23 2021 lixiaokeng <lixiaokeng@huawei.com> -3.10.5-1
|
||||||
- upgrade to 3.10.5
|
- upgrade to 3.10.5
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user