aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pluma/0001-fix-accessperms-in-tests.patch
blob: 144994aa3f463b67a8ca4f4cc7d9e2fc69a10e2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From c2503017d7f70c83a7bcf25da356db15b5015005 Mon Sep 17 00:00:00 2001
From: Alan Lacerda <alacerda@alpinelinux.org>
Date: Thu, 16 Jul 2015 17:45:10 +0000
Subject: [PATCH] fix accessperms in tests

---
 tests/document-saver.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/document-saver.c b/tests/document-saver.c
index 455ef65..a36700d 100644
--- a/tests/document-saver.c
+++ b/tests/document-saver.c
@@ -27,6 +27,10 @@
 #include <string.h>
 #include <sys/stat.h>
 
+#ifndef ACCESSPERMS
+#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
+#endif
+
 #define DEFAULT_LOCAL_URI "/tmp/pluma-document-saver-test.txt"
 #define DEFAULT_REMOTE_URI "sftp://localhost/tmp/pluma-document-saver-test.txt"
 #define DEFAULT_CONTENT "hello world!"
-- 
2.4.6