summaryrefslogtreecommitdiff
path: root/lang/librep/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'lang/librep/patches/patch-ac')
-rw-r--r--lang/librep/patches/patch-ac17
1 files changed, 17 insertions, 0 deletions
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