From 4da09884075f8e9025f6c7fe1f1e93f16e1dcebb Mon Sep 17 00:00:00 2001 From: Daniel P. Berrange Date: Dec 01 2007 22:19:58 +0000 Subject: Patch to fix missing 3rd arg to open --- diff --git a/xen-console-log.patch b/xen-console-log.patch new file mode 100644 index 0000000..29d43c3 --- /dev/null +++ b/xen-console-log.patch @@ -0,0 +1,12 @@ +diff -rup xen-3.1.0-src/tools/console/daemon/utils.c xen-3.1.0-src.new/tools/console/daemon/utils.c +--- xen-3.1.0-src/tools/console/daemon/utils.c 2007-05-18 10:45:21.000000000 -0400 ++++ xen-3.1.0-src.new/tools/console/daemon/utils.c 2007-06-12 09:28:21.000000000 -0400 +@@ -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); + }