rpms/xen/F-7 xen-console-log.patch,NONE,1.1

Daniel P. Berrange (berrange) fedora-extras-commits at redhat.com
Sat Dec 1 22:20:00 UTC 2007


Author: berrange

Update of /cvs/pkgs/rpms/xen/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv514

Added Files:
	xen-console-log.patch 
Log Message:
Patch to fix missing 3rd arg to open

xen-console-log.patch:

--- NEW FILE xen-console-log.patch ---
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);
 	}




More information about the fedora-extras-commits mailing list