projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix sccs.include.redist.sh line
[unix-history]
/
usr
/
src
/
libexec
/
ftpd
/
ftpcmd.y
diff --git
a/usr/src/libexec/ftpd/ftpcmd.y
b/usr/src/libexec/ftpd/ftpcmd.y
index
36d3bcd
..
e25f049
100644
(file)
--- a/
usr/src/libexec/ftpd/ftpcmd.y
+++ b/
usr/src/libexec/ftpd/ftpcmd.y
@@
-4,7
+4,7
@@
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)ftpcmd.y 5.2
3
(Berkeley) %G%
+ * @(#)ftpcmd.y 5.2
4
(Berkeley) %G%
*/
/*
*/
/*
@@
-15,24
+15,24
@@
%{
#ifndef lint
%{
#ifndef lint
-static char sccsid[] = "@(#)ftpcmd.y 5.2
3
(Berkeley) %G%";
+static char sccsid[] = "@(#)ftpcmd.y 5.2
4
(Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#include <sys/socket.h>
#endif /* not lint */
#include <sys/param.h>
#include <sys/socket.h>
-
+#include <sys/stat.h>
#include <netinet/in.h>
#include <netinet/in.h>
-
#include <arpa/ftp.h>
#include <arpa/ftp.h>
-
-#include <stdio.h>
#include <signal.h>
#include <signal.h>
-#include <ctype.h>
-#include <pwd.h>
#include <setjmp.h>
#include <syslog.h>
#include <setjmp.h>
#include <syslog.h>
-#include <sys/stat.h>
#include <time.h>
#include <time.h>
+#include <pwd.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <ctype.h>
+#include <stdlib.h>
+#include <string.h>
extern struct sockaddr_in data_dest;
extern int logged_in;
extern struct sockaddr_in data_dest;
extern int logged_in;
@@
-51,7
+51,7
@@
extern char *globerr;
extern int usedefault;
extern int transflag;
extern char tmpline[];
extern int usedefault;
extern int transflag;
extern char tmpline[];
-char **glob();
+char **
ftp
glob();
static int cmd_type;
static int cmd_form;
static int cmd_type;
static int cmd_form;
@@
-59,7
+59,6
@@
static int cmd_bytesz;
char cbuf[512];
char *fromname;
char cbuf[512];
char *fromname;
-char *index();
%}
%token
%}
%token
@@
-594,7
+593,7
@@
pathname: pathstring
* This is a valid reply in some cases but not in others.
*/
if (logged_in && $1 && strncmp((char *) $1, "~", 1) == 0) {
* This is a valid reply in some cases but not in others.
*/
if (logged_in && $1 && strncmp((char *) $1, "~", 1) == 0) {
- *(char **)&($$) = *glob((char *) $1);
+ *(char **)&($$) = *
ftp
glob((char *) $1);
if (globerr != NULL) {
reply(550, globerr);
$$ = NULL;
if (globerr != NULL) {
reply(550, globerr);
$$ = NULL;
@@
-801,12
+800,10
@@
getline(s, n, iop)
return (s);
}
return (s);
}
-static
int
+static
void
toolong()
{
time_t now;
toolong()
{
time_t now;
- extern char *ctime();
- extern time_t time();
reply(421,
"Timeout (%d seconds): closing control connection.", timeout);
reply(421,
"Timeout (%d seconds): closing control connection.", timeout);
@@
-825,8
+822,7
@@
yylex()
register char *cp, *cp2;
register struct tab *p;
int n;
register char *cp, *cp2;
register struct tab *p;
int n;
- char c, *strpbrk();
- char *copy();
+ char c, *copy();
for (;;) {
switch (state) {
for (;;) {
switch (state) {
@@
-1052,7
+1048,6
@@
copy(s)
char *s;
{
char *p;
char *s;
{
char *p;
- extern char *malloc(), *strcpy();
p = malloc((unsigned) strlen(s) + 1);
if (p == NULL)
p = malloc((unsigned) strlen(s) + 1);
if (p == NULL)