summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cvs/cvs/modules.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/cvs/cvs/modules.patch')
-rw-r--r--gnu/usr.bin/cvs/cvs/modules.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/usr.bin/cvs/cvs/modules.patch b/gnu/usr.bin/cvs/cvs/modules.patch
new file mode 100644
index 0000000..99a34fd
--- /dev/null
+++ b/gnu/usr.bin/cvs/cvs/modules.patch
@@ -0,0 +1,25 @@
+$FreeBSD$
+Index: contrib/cvs/src/modules.c
+===================================================================
+RCS file: /home/ncvs/src/contrib/cvs/src/modules.c,v
+retrieving revision 1.1.1.9
+diff -c -r1.1.1.9 modules.c
+*** contrib/cvs/src/modules.c 21 Jan 2004 16:27:56 -0000 1.1.1.9
+--- contrib/cvs/src/modules.c 14 Apr 2004 15:54:51 -0000
+***************
+*** 170,175 ****
+--- 170,183 ----
+ if (isabsolute (mname))
+ error (1, 0, "Absolute module reference invalid: `%s'", mname);
+
++ /* Similarly for directories that attempt to step above the root of the
++ * repository.
++ */
++ if (pathname_levels (mname) > 0)
++ error (1, 0, "up-level in module reference (`..') invalid: `%s'.",
++ mname);
++
++
+ /* if this is a directory to ignore, add it to that list */
+ if (mname[0] == '!' && mname[1] != '\0')
+ {
OpenPOWER on IntegriCloud