Page MenuHomeSoftware Heritage

D4289.id.diff
No OneTemporary

D4289.id.diff

diff --git a/swh/fuse/cli.py b/swh/fuse/cli.py
--- a/swh/fuse/cli.py
+++ b/swh/fuse/cli.py
@@ -108,5 +108,7 @@
with ExitStack() as stack:
if not foreground:
- stack.enter_context(DaemonContext())
+ # Stay in the current working directory when spawning daemon
+ cwd = os.getcwd()
+ stack.enter_context(DaemonContext(working_directory=cwd))
asyncio.run(fuse.main(swhids, path, ctx.obj["config"]))

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 3, 3:26 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3223167

Event Timeline