Commit 7a67035a authored by Anatoly Lyutin's avatar Anatoly Lyutin Committed by Alexandre Julliard

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

parent 909f7ffc
...@@ -522,7 +522,7 @@ static int CreateSpoolFile(LPCSTR pszOutput) ...@@ -522,7 +522,7 @@ static int CreateSpoolFile(LPCSTR pszOutput)
MultiByteToWideChar(CP_ACP, 0, psCmdP, -1, psCmdPW, MAX_PATH); MultiByteToWideChar(CP_ACP, 0, psCmdP, -1, psCmdPW, MAX_PATH);
if ((buffer = wine_get_unix_file_name(psCmdPW))) 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", ERR("Failed to create spool file '%s' ('%s'). (error %s)\n",
buffer, psCmdP, strerror(errno)); buffer, psCmdP, strerror(errno));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment