From: Michael R Sweet Date: Fri, 16 May 2025 22:46:17 +0000 (-0400) Subject: Use per-type mode when saving OAuth values. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d68a881ae86372f43a980c0009553255f4ed118;p=thirdparty%2Fcups.git Use per-type mode when saving OAuth values. --- diff --git a/cups/oauth.c b/cups/oauth.c index 6adac2ca36..0bf50b1605 100644 --- a/cups/oauth.c +++ b/cups/oauth.c @@ -2112,7 +2112,7 @@ oauth_save_value( if (value) { // Create the file... - if ((fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW, 0600)) >= 0) + if ((fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW, modes[otype])) >= 0) { // Write the value and close... write(fd, value, strlen(value));