35 lines
1015 B
Diff
35 lines
1015 B
Diff
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
|
|
|