Skip to content

Commit

Permalink
Make spool directory use restricted permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Nov 7, 2023
1 parent ea7515d commit 8938573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pappl/mainloop-subcommands.c
Original file line number Diff line number Diff line change
Expand Up @@ -1724,7 +1724,7 @@ default_system_cb(
snprintf(spoolname, sizeof(spoolname), PAPPL_STATEDIR "/spool/%s", base_name);

// Make sure base directory exists
if (mkdir(PAPPL_STATEDIR "/spool", 0777) && errno != EEXIST)
if (mkdir(PAPPL_STATEDIR "/spool", 0700) && errno != EEXIST)
{
// Can't use local state directory, so use the last resort...
spoolname[0] = '\0';
Expand Down

0 comments on commit 8938573

Please sign in to comment.