Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 125859 Details for
Bug 186450
dev-libs/cyrus-sasl - multiple issues
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0016_pid_file_lock_creation_mask.dpatch
0016_pid_file_lock_creation_mask.dpatch (text/plain), 1.21 KB, created by
Carsten Lohrke (RETIRED)
on 2007-07-24 11:06:16 UTC
(
hide
)
Description:
0016_pid_file_lock_creation_mask.dpatch
Filename:
MIME Type:
Creator:
Carsten Lohrke (RETIRED)
Created:
2007-07-24 11:06:16 UTC
Size:
1.21 KB
patch
obsolete
>#! /bin/sh /usr/share/dpatch/dpatch-run >## 0016_pid_file_lock_creation_mask.dpatch by Sam Hocevar <sam@zoy.org> >## >## All lines beginning with `## DP:' are a description of the patch. >## DP: pid_file_lock is created with a mask of 644 instead of 0644. >## DP: This patch fixes this octal/decimal confusion as well as the >## DP: (harmless) one in the previous umask() call. > >@DPATCH@ >diff -urNad trunk~/saslauthd/saslauthd-main.c trunk/saslauthd/saslauthd-main.c >--- trunk~/saslauthd/saslauthd-main.c 2006-05-29 22:52:42.000000000 +0300 >+++ trunk/saslauthd/saslauthd-main.c 2007-06-26 12:07:10.000000000 +0300 >@@ -276,7 +276,7 @@ > exit(1); > } > >- umask(077); >+ umask(0077); > > pid_file_size = strlen(run_path) + sizeof(PID_FILE_LOCK) + 1; > if ((pid_file_lock = malloc(pid_file_size)) == NULL) { >@@ -287,7 +287,7 @@ > strlcpy(pid_file_lock, run_path, pid_file_size); > strlcat(pid_file_lock, PID_FILE_LOCK, pid_file_size); > >- if ((pid_file_lock_fd = open(pid_file_lock, O_CREAT|O_TRUNC|O_RDWR, 644)) < 0) { >+ if ((pid_file_lock_fd = open(pid_file_lock, O_CREAT|O_TRUNC|O_RDWR, 0644)) < 0) { > rc = errno; > logger(L_ERR, L_FUNC, "could not open pid lock file: %s", pid_file_lock); > logger(L_ERR, L_FUNC, "open: %s", strerror(rc));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 186450
: 125859 |
125861
|
125862