gdi32: printdrv: Use umask for creating a spool file.

This commit is contained in:
Anatoly Lyutin 2007-09-26 18:28:59 +04:00 committed by Alexandre Julliard
parent 909f7ffcb9
commit 7a67035a44
1 changed files with 1 additions and 1 deletions

View File

@ -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));