]> git.pld-linux.org Git - packages/gdm2.20.git/blobdiff - gdm-xdmcp.patch
- security fix: creat files with 0660 mode (not 0666).
[packages/gdm2.20.git] / gdm-xdmcp.patch
diff --git a/gdm-xdmcp.patch b/gdm-xdmcp.patch
new file mode 100644 (file)
index 0000000..3de7bcb
--- /dev/null
@@ -0,0 +1,11 @@
+--- gdm-2.2.1/daemon/server.c.orig     Sat May  5 11:05:32 2001
++++ gdm-2.2.1/daemon/server.c  Sat May  5 11:05:46 2001
+@@ -297,7 +297,7 @@
+         /* Log all output from spawned programs to a file */
+       logfd = open (g_strconcat (GdmLogDir, "/", d->name, ".log", NULL),
+-                    O_CREAT|O_TRUNC|O_APPEND|O_WRONLY, 0666);
++                    O_CREAT|O_TRUNC|O_APPEND|O_WRONLY, 0660);
+       if (logfd != -1) {
+               dup2 (logfd, 1);
This page took 0.224979 seconds and 4 git commands to generate.