aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/krb5-16/files/patch-bd19
-rw-r--r--security/krb5-17/files/patch-bd19
-rw-r--r--security/krb5-appl/files/patch-bd19
-rw-r--r--security/krb5/files/patch-bd19
4 files changed, 76 insertions, 0 deletions
diff --git a/security/krb5-16/files/patch-bd b/security/krb5-16/files/patch-bd
new file mode 100644
index 00000000000..b2bf41284bb
--- /dev/null
+++ b/security/krb5-16/files/patch-bd
@@ -0,0 +1,19 @@
+--- appl/gssftp/ftpd/ftpcmd.y.ORIG Wed Feb 28 16:06:45 2001
++++ appl/gssftp/ftpd/ftpcmd.y Fri Apr 27 10:18:01 2001
+@@ -805,11 +805,13 @@
+ * This is a valid reply in some cases but not in others.
+ */
+ if (logged_in && $1 && strncmp((char *) $1, "~", 1) == 0) {
+- *(char **)&($$) = *ftpglob((char *) $1);
+- if (globerr != NULL) {
++ char **vv;
++ vv = ftpglob((char *) $1);
++ if (vv == NULL || globerr != NULL) {
+ reply(550, globerr);
+ $$ = NULL;
+- }
++ } else
++ $$ = *vv;
+ free((char *) $1);
+ } else
+ $$ = $1;
diff --git a/security/krb5-17/files/patch-bd b/security/krb5-17/files/patch-bd
new file mode 100644
index 00000000000..b2bf41284bb
--- /dev/null
+++ b/security/krb5-17/files/patch-bd
@@ -0,0 +1,19 @@
+--- appl/gssftp/ftpd/ftpcmd.y.ORIG Wed Feb 28 16:06:45 2001
++++ appl/gssftp/ftpd/ftpcmd.y Fri Apr 27 10:18:01 2001
+@@ -805,11 +805,13 @@
+ * This is a valid reply in some cases but not in others.
+ */
+ if (logged_in && $1 && strncmp((char *) $1, "~", 1) == 0) {
+- *(char **)&($$) = *ftpglob((char *) $1);
+- if (globerr != NULL) {
++ char **vv;
++ vv = ftpglob((char *) $1);
++ if (vv == NULL || globerr != NULL) {
+ reply(550, globerr);
+ $$ = NULL;
+- }
++ } else
++ $$ = *vv;
+ free((char *) $1);
+ } else
+ $$ = $1;
diff --git a/security/krb5-appl/files/patch-bd b/security/krb5-appl/files/patch-bd
new file mode 100644
index 00000000000..b2bf41284bb
--- /dev/null
+++ b/security/krb5-appl/files/patch-bd
@@ -0,0 +1,19 @@
+--- appl/gssftp/ftpd/ftpcmd.y.ORIG Wed Feb 28 16:06:45 2001
++++ appl/gssftp/ftpd/ftpcmd.y Fri Apr 27 10:18:01 2001
+@@ -805,11 +805,13 @@
+ * This is a valid reply in some cases but not in others.
+ */
+ if (logged_in && $1 && strncmp((char *) $1, "~", 1) == 0) {
+- *(char **)&($$) = *ftpglob((char *) $1);
+- if (globerr != NULL) {
++ char **vv;
++ vv = ftpglob((char *) $1);
++ if (vv == NULL || globerr != NULL) {
+ reply(550, globerr);
+ $$ = NULL;
+- }
++ } else
++ $$ = *vv;
+ free((char *) $1);
+ } else
+ $$ = $1;
diff --git a/security/krb5/files/patch-bd b/security/krb5/files/patch-bd
new file mode 100644
index 00000000000..b2bf41284bb
--- /dev/null
+++ b/security/krb5/files/patch-bd
@@ -0,0 +1,19 @@
+--- appl/gssftp/ftpd/ftpcmd.y.ORIG Wed Feb 28 16:06:45 2001
++++ appl/gssftp/ftpd/ftpcmd.y Fri Apr 27 10:18:01 2001
+@@ -805,11 +805,13 @@
+ * This is a valid reply in some cases but not in others.
+ */
+ if (logged_in && $1 && strncmp((char *) $1, "~", 1) == 0) {
+- *(char **)&($$) = *ftpglob((char *) $1);
+- if (globerr != NULL) {
++ char **vv;
++ vv = ftpglob((char *) $1);
++ if (vv == NULL || globerr != NULL) {
+ reply(550, globerr);
+ $$ = NULL;
+- }
++ } else
++ $$ = *vv;
+ free((char *) $1);
+ } else
+ $$ = $1;