Anatoly Lyutin : gdi32: printdrv: Use umask for creating a spool file.
Alexandre Julliard
julliard at winehq.org
Thu Sep 27 09:27:28 CDT 2007
Module: wine
Branch: master
Commit: 7a67035a44e43dba82a717a45365fb3452f51e88
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a67035a44e43dba82a717a45365fb3452f51e88
Author: Anatoly Lyutin <vostok at etersoft.ru>
Date: Wed Sep 26 18:28:59 2007 +0400
gdi32: printdrv: Use umask for creating a spool file.
---
dlls/gdi32/printdrv.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/printdrv.c b/dlls/gdi32/printdrv.c
index bdd754f..16b3fe3 100644
--- a/dlls/gdi32/printdrv.c
+++ b/dlls/gdi32/printdrv.c
@@ -522,7 +522,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
MultiByteToWideChar(CP_ACP, 0, psCmdP, -1, psCmdPW, MAX_PATH);
if ((buffer = wine_get_unix_file_name(psCmdPW)))
{
- if ((fd = open(buffer, O_CREAT | O_TRUNC | O_WRONLY , 0600)) < 0)
+ if ((fd = open(buffer, O_CREAT | O_TRUNC | O_WRONLY, 0666)) < 0)
{
ERR("Failed to create spool file '%s' ('%s'). (error %s)\n",
buffer, psCmdP, strerror(errno));
More information about the wine-cvs
mailing list