+1999-09-21 Ken Raeburn <raeburn@mit.edu>
+
+ * ftp.c (getreply): Don't declare strpbrk or strstr functions if
+ they're defined as macros.
+
1999-08-27 Tom Yu <tlyu@mit.edu>
* ftp.c: Diable krb5-mech2 for now.
sigtype cmdabort();
char ibuf[FTP_BUFSIZ], obuf[FTP_BUFSIZ];
int safe = 0;
- extern char *strpbrk(), *strstr();
+#ifndef strpbrk
+ extern char *strpbrk();
+#endif
+#ifndef strstr
+ extern char *strstr();
+#endif
ibuf[0] = '\0';
if (reply_parse) reply_ptr = reply_buf;
+1999-09-21 Ken Raeburn <raeburn@mit.edu>
+
+ * ftpd.c (checkuser): Only call fclose on file handle if it's not
+ NULL.
+ (send_file_list): Don't declare strpbrk function if it's defined
+ as a macro.
+
Thu Mar 25 23:13:56 1999 Tom Yu <tlyu@mit.edu>
* ftpd.c (login): Check that the luid is not the uid we want to
}
}
}
+ (void) fclose(fd);
}
- (void) fclose(fd);
return (0);
}
myoob()
{
char *cp, *cs;
+#ifndef strpbrk
extern char *strpbrk();
+#endif
/* only process if transfer occurring */
if (!transflag)
FILE *dout = NULL;
register char **dirlist, *dirname;
int simple = 0;
+#ifndef strpbrk
char *strpbrk();
+#endif
int ret = 0;
if (strpbrk(whichfiles, "~{[*?") != NULL) {