From a4f35c76e63f9bccf62c5ed808d1c9047a7898c8 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Mon, 20 Apr 1998 04:28:08 +0000 Subject: [PATCH] Back out of previous change, it doesn't work with bison. Rename STAT to sTAT instead. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4788 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftpd/ftpcmd.y | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/appl/ftp/ftpd/ftpcmd.y b/appl/ftp/ftpd/ftpcmd.y index 2a8578b83..a008a87d2 100644 --- a/appl/ftp/ftpd/ftpcmd.y +++ b/appl/ftp/ftpd/ftpcmd.y @@ -45,8 +45,6 @@ #include "ftpd_locl.h" RCSID("$Id$"); -#undef STAT /* conflicts with AIX sys/dir.h */ - off_t restart_point; static int cmd_type; @@ -98,7 +96,7 @@ static int yylex (void); APPE MLFL MAIL MSND MSOM MSAM MRSQ MRCP ALLO REST RNFR RNTO ABOR DELE CWD LIST NLST SITE - STAT HELP NOOP MKD RMD PWD + sTAT HELP NOOP MKD RMD PWD CDUP STOU SMNT SYST SIZE MDTM UMASK IDLE CHMOD @@ -317,14 +315,14 @@ cmd if ($4 != NULL) free($4); } - | STAT check_login SP pathname CRLF + | sTAT check_login SP pathname CRLF { if ($2 && $4 != NULL) statfilecmd($4); if ($4 != NULL) free($4); } - | STAT CRLF + | sTAT CRLF { if(oobflag){ if (file_size != (off_t) -1) @@ -932,7 +930,7 @@ struct tab cmdtab[] = { /* In order defined in RFC 765 */ { "NLST", NLST, OSTR, 1, "[ path-name ]" }, { "SITE", SITE, SITECMD, 1, "site-cmd [ arguments ]" }, { "SYST", SYST, ARGS, 1, "(get type of operating system)" }, - { "STAT", STAT, OSTR, 1, "[ path-name ]" }, + { "STAT", sTAT, OSTR, 1, "[ path-name ]" }, { "HELP", HELP, OSTR, 1, "[ ]" }, { "NOOP", NOOP, ARGS, 1, "" }, { "MKD", MKD, STR1, 1, " path-name" },