projects
/
qemu-gpiodev
/
libfuse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a38722b
)
fuse_daemonize(): chdir to "/" even if not running in the background
author
Miklos Szeredi
<mszeredi@suse.cz>
Tue, 19 Feb 2013 13:14:40 +0000
(14:14 +0100)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Tue, 19 Feb 2013 13:14:40 +0000
(14:14 +0100)
for consistency.
Reported by Vladimir Rutsky
ChangeLog
patch
|
blob
|
history
lib/helper.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index 9a775bb0d4eec8b79b1b7c34e03f2e53906d0452..0094c3e00d4fe0917aefa7917ab0e3e1586c9570 100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,8
@@
+2013-02-19 Miklos Szeredi <miklos@szeredi.hu>
+
+ * fuse_daemonize(): chdir to "/" even if not running in the
+ background for consistency. Reported by Vladimir Rutsky
+
2013-02-18 Miklos Szeredi <miklos@szeredi.hu>
* fuse_opt_parse(): when storing a newly allocated string for
diff --git
a/lib/helper.c
b/lib/helper.c
index a5b540b1c4af8f4111b25c7098298f022ba455da..249cc9c038687e0de1b846ffc2cb9aa0bf3332ae 100644
(file)
--- 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;
}