SHA256
1
0
forked from pool/xen
xen/15211-partial-changeset.patch

14 lines
445 B
Diff
Raw Normal View History

Index: xen-3.1-testing/tools/console/daemon/utils.c
===================================================================
--- xen-3.1-testing.orig/tools/console/daemon/utils.c
+++ xen-3.1-testing/tools/console/daemon/utils.c
@@ -86,7 +86,7 @@ void daemonize(const char *pidfile)
if (chdir("/") < 0)
exit (1);
- fd = open(pidfile, O_RDWR | O_CREAT);
+ fd = open(pidfile, O_RDWR | O_CREAT, S_IRUSR|S_IWUSR);
if (fd == -1) {
exit(1);
}