summaryrefslogtreecommitdiffstats
path: root/abs/core/libsasl/0016_pid_file_lock_creation_mask.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 16:04:17 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 16:04:17 (GMT)
commit927e681145873e5045d07c9b7bb97f98e662040d (patch)
tree168eabeb632c9922c5e281436bc0967fea7f8304 /abs/core/libsasl/0016_pid_file_lock_creation_mask.patch
parent9b52b29dd1f40f1fffea8fe268ab833c2db8b293 (diff)
downloadlinhes_pkgbuild-927e681145873e5045d07c9b7bb97f98e662040d.zip
linhes_pkgbuild-927e681145873e5045d07c9b7bb97f98e662040d.tar.gz
linhes_pkgbuild-927e681145873e5045d07c9b7bb97f98e662040d.tar.bz2
libsasl 2.1.23
Diffstat (limited to 'abs/core/libsasl/0016_pid_file_lock_creation_mask.patch')
-rw-r--r--abs/core/libsasl/0016_pid_file_lock_creation_mask.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/abs/core/libsasl/0016_pid_file_lock_creation_mask.patch b/abs/core/libsasl/0016_pid_file_lock_creation_mask.patch
new file mode 100644
index 0000000..e9170ce
--- /dev/null
+++ b/abs/core/libsasl/0016_pid_file_lock_creation_mask.patch
@@ -0,0 +1,27 @@
+0016_pid_file_lock_creation_mask.dpatch by Sam Hocevar <sam@zoy.org>
+
+pid_file_lock is created with a mask of 644 instead of 0644.
+This patch fixes this octal/decimal confusion as well as the
+(harmless) one in the previous umask() call.
+
+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));