summaryrefslogtreecommitdiff
path: root/lang/librep
diff options
context:
space:
mode:
authorwiz <wiz>2000-12-16 01:57:36 +0000
committerwiz <wiz>2000-12-16 01:57:36 +0000
commit1aac6783c4b6cac23890bccd8b3b22b2a3aa3e92 (patch)
treee85a301764377e1f0aa70c7be021c744ff92baf3 /lang/librep
parent82df438a5ce813b4bb9edc21da8032e513d1fdb6 (diff)
downloadpkgsrc-1aac6783c4b6cac23890bccd8b3b22b2a3aa3e92.tar.gz
Add patch against mkdir failure; provided in pkg/11633 by rafal@mediaone.net.
Diffstat (limited to 'lang/librep')
-rw-r--r--lang/librep/files/patch-sum3
-rw-r--r--lang/librep/patches/patch-ac17
2 files changed, 19 insertions, 1 deletions
diff --git a/lang/librep/files/patch-sum b/lang/librep/files/patch-sum
index bb964ab2f72..b25d5dbd763 100644
--- a/lang/librep/files/patch-sum
+++ b/lang/librep/files/patch-sum
@@ -1,4 +1,5 @@
-
+$NetBSD: patch-sum,v 1.8 2000/12/16 01:57:36 wiz Exp $
MD5 (patch-aa) = 78f1b645f5b6f5b9a17a8b6ad0f25477
MD5 (patch-ab) = 0709ce7845fa617835ae26daa3ef815b
+MD5 (patch-ac) = ca53726781f60abe1598edf44269543b
diff --git a/lang/librep/patches/patch-ac b/lang/librep/patches/patch-ac
new file mode 100644
index 00000000000..bf0de1c22a0
--- /dev/null
+++ b/lang/librep/patches/patch-ac
@@ -0,0 +1,17 @@
+$NetBSD: patch-ac,v 1.1 2000/12/16 01:58:01 wiz Exp $
+
+--- src/unix_files.c.orig Sat Sep 2 11:43:03 2000
++++ src/unix_files.c
+@@ -286,6 +286,12 @@
+ repv
+ rep_make_directory(repv dir)
+ {
++ int len = rep_STRING_LEN(dir);
++
++ /* Trim trailing '/' to mkdir(2) since some OSes fail the call otherwise */
++ if (*(rep_STR(dir) + len - 1) == '/')
++ dir = rep_string_dupn(rep_STR(dir), len - 1);
++
+ if(mkdir(rep_STR(dir), S_IRWXU | S_IRWXG | S_IRWXO) == 0)
+ return Qt;
+ else