Module: wine Branch: master Commit: 7a67035a44e43dba82a717a45365fb3452f51e88 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a67035a44e43dba82a717a453...
Author: Anatoly Lyutin vostok@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));