git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58bcfdf
)
daemon: change to root directory
author
Richard W.M. Jones
<rjones@redhat.com>
Thu, 3 Feb 2011 18:49:35 +0000
(18:49 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Thu, 3 Feb 2011 18:50:17 +0000
(18:50 +0000)
Ensure the daemon always starts with current directory == root.
daemon/guestfsd.c
patch
|
blob
|
history
diff --git
a/daemon/guestfsd.c
b/daemon/guestfsd.c
index
8d950fa
..
a8b53e7
100644
(file)
--- a/
daemon/guestfsd.c
+++ b/
daemon/guestfsd.c
@@
-142,6
+142,8
@@
main (int argc, char *argv[])
int dont_fork = 0;
char *cmdline;
+ chdir ("/");
+
if (winsock_init () == -1)
error (EXIT_FAILURE, 0, "winsock initialization failed");