+2006-01-06 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Change working directory to "/" even if running in the
+ foreground. Patch from Jonathan Brandmeyer
+
2006-01-02 Miklos Szeredi <miklos@szeredi.hu>
* mount.fuse: the 'user' option should be ignored. Report and
perror("fuse: failed to daemonize program\n");
goto err_destroy;
}
+ } else {
+ /* Ensure consistant behavior across debug and normal modes */
+ res = chdir("/");
+ if (res == -1) {
+ perror("fuse: failed to change working directory to /\n");
+ goto err_destroy;
+ }
}
res = set_signal_handlers();