summaryrefslogtreecommitdiff
path: root/net/yale-tftpd/patches/patch-ai
diff options
context:
space:
mode:
Diffstat (limited to 'net/yale-tftpd/patches/patch-ai')
-rw-r--r--net/yale-tftpd/patches/patch-ai63
1 files changed, 63 insertions, 0 deletions
diff --git a/net/yale-tftpd/patches/patch-ai b/net/yale-tftpd/patches/patch-ai
new file mode 100644
index 00000000000..36da10dffab
--- /dev/null
+++ b/net/yale-tftpd/patches/patch-ai
@@ -0,0 +1,63 @@
+$NetBSD: patch-ai,v 1.1 2002/04/01 00:04:44 dmcmahill Exp $
+
+--- tftpyale.c.orig Mon Mar 20 15:11:11 1995
++++ tftpyale.c
+@@ -95,7 +95,7 @@
+ int ac;
+ char** av;
+ {
+- int list;
++ long list;
+
+ ac--; av++;
+ if (ac != 2) {
+@@ -104,7 +104,7 @@
+ }
+
+ /* get list number */
+- list = atoi (av[1]);
++ list = atol (av[1]);
+ if (list <= 0) {
+ accessFormatError = "list argument not positive integer";
+ return 0;
+@@ -157,11 +157,11 @@
+ * qualified (starts with '/') check to see if the
+ * prefix matches the default directory.
+ */
+-static int
++static long
+ getAccessList (fileName)
+ char* fileName;
+ {
+- unsigned int list;
++ unsigned long list;
+ char* rindex();
+
+ if (*fileName == '/') {
+@@ -177,7 +177,7 @@
+ }
+ }
+
+- list = (int)dict_find (fileAccessDict, fileName);
++ list = (long)dict_find (fileAccessDict, fileName);
+
+ return list ? list : defaultAccessList;
+ }
+@@ -269,7 +269,7 @@
+ continue;
+
+ cargv = config_fields(cnf);
+- switch ((int)dict_find (commandDict, cargv[0])) {
++ switch ((long)dict_find (commandDict, cargv[0])) {
+ /* specify default directory */
+ case CMD_DEFAULT_DIR:
+ if (cargc != 2)
+@@ -481,7 +481,7 @@
+
+ static struct CMDS {
+ char* cmdName;
+- int cmdVal;
++ long cmdVal;
+ } configCmds[] ={
+ "default-directory", CMD_DEFAULT_DIR,
+ "defaultDirectory", CMD_DEFAULT_DIR,