diff options
Diffstat (limited to 'lib/helper.c')
-rw-r--r-- | lib/helper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/helper.c b/lib/helper.c index a5b540b..249cc9c 100644 --- a/lib/helper.c +++ b/lib/helper.c @@ -210,6 +210,8 @@ int fuse_daemonize(int foreground) if (nullfd > 2) close(nullfd); } + } else { + (void) chdir("/"); } return 0; } |