summaryrefslogtreecommitdiffstats
path: root/src/appl/gssftp/ftp/cmds.c
Commit message (Collapse)AuthorAgeFilesLines
* Unbundle applications into separate repositoryGreg Hudson2009-11-221-2533/+0
| | | | | | | | | | | | | | | Remove libpty, gssftp, telnet, and the bsd applications from the source tree, build system, and tests. Docs still need to be updated to remove mentions of the applications. The build system should be simplified now that we're down to one configure script and don't need some of the functionality currently in aclocal.m4. ticket: 6583 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23305 dc483132-0cff-0310-8789-dd5450dbe970
* make mark-cstyleTom Yu2009-10-311-9/+9
| | | | | | make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
* include win-mac.h in gssftp/ftp/cmds.c for HAVE_STDLIB_HTom Yu2009-07-171-0/+4
| | | | | | | | | | | gssftp/ftp/cmds.c had a preprocessor conditional on HAVE_STDLIB_H that will not evaluate correctly on WIN32 unless win-mac.h is included first. ticket: 6531 target_version: 1.6.4 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22443 dc483132-0cff-0310-8789-dd5450dbe970
* Get rid of casts of free() argument to char*, except where it'sKen Raeburn2009-02-021-4/+4
| | | | | | | | casting away const (so as to make this change warning-neutral), and in unicode source (which we may want to keep in sync with another source), and krb5_xfree macro (to be handled separately). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21870 dc483132-0cff-0310-8789-dd5450dbe970
* Use strlcpy instead of strcpy in many placesGreg Hudson2008-10-241-1/+1
| | | | | | | ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20919 dc483132-0cff-0310-8789-dd5450dbe970
* Use snprintf instead of strcpy/strcat in many placesGreg Hudson2008-10-231-3/+3
| | | | | | | ticket: 6200 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20912 dc483132-0cff-0310-8789-dd5450dbe970
* cstatus() takes no argumentsKen Raeburn2008-08-061-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20613 dc483132-0cff-0310-8789-dd5450dbe970
* remove debugging code accidentally left in ftp/cmds.cKen Raeburn2007-04-231-11/+0
| | | | | | | | | | | | | | | Debugging code I added months ago in ftp/cmds.c and forgot to remove has apparently escaped notice until now. Markus Moeller reports seeing a bunch of "cmds.c: at line (number)" lines printed when he connects to a server. This patch removes those lines. A couple other debugging statements that test for the debug flag being set on the command line are left in. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19520 dc483132-0cff-0310-8789-dd5450dbe970
* more debugging printfs for nightly testingKen Raeburn2006-10-121-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18689 dc483132-0cff-0310-8789-dd5450dbe970
* some (more) debugging code to track down nightly test failuresKen Raeburn2006-10-111-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18680 dc483132-0cff-0310-8789-dd5450dbe970
* some debugging code to track down nightly test failuresKen Raeburn2006-10-111-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18679 dc483132-0cff-0310-8789-dd5450dbe970
* Change a bunch of calls to ctype macros (those cited by Jeff, and aKen Raeburn2006-06-161-6/+6
| | | | | | | | few others) to cast the character values to unsigned char. ticket: 3445 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18156 dc483132-0cff-0310-8789-dd5450dbe970
* * ftp.c (recvrequest): Add new argument indicating whether "-" and "|..."Ken Raeburn2003-06-161-5/+5
| | | | | | | | | | | | | special treatment should be disabled. * ftp_var.h (recvrequest): Update declaration. * cmds.c (remglob, ls, mls): Pass 0 as the extra argument. (mget): Pass 1. (getit): Pass 1 iff only one filename was supplied. ticket: 1351 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15626 dc483132-0cff-0310-8789-dd5450dbe970
* define "unix" on BSDKen Raeburn2002-03-071-5/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14232 dc483132-0cff-0310-8789-dd5450dbe970
* Don't conditionalize prototypes; delete macros supporting it. (Maybe overdone;Ken Raeburn2001-10-101-7/+7
| | | | | | don't worry about restoring them when importing new versions of code.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13792 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in, cmds.c, ftp.c, ftp_var.h, getpass.c, glob.c,Danilo Almeida2001-07-241-16/+106
| | | | | | | | | | | | main.c, ruserpass.c, secure.c, secure.h: Quick and dirty Win32 port. Changes include using sockets more portably; changing the method of getting username, home directory, and temporary filenames; adding password reading code for Win32; directory enumeration via FindNextFile() rather than readdir(); removing OUT labels (which appear to cause problems with MSVC++ 6.0). Since ANSI C, assume we have stdarg.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13628 dc483132-0cff-0310-8789-dd5450dbe970
* * cmds.c, domacro.c: Cast arguments to isspace() and isdigit()Ezra Peisach2001-06-151-9/+9
| | | | | | | | from char to int. * ftp.c: krb5_mk_priv(), krb5_mk_safe() expect C_Block *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13350 dc483132-0cff-0310-8789-dd5450dbe970
* cmds.c: fix broken port number checkKen Raeburn2001-05-011-4/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13225 dc483132-0cff-0310-8789-dd5450dbe970
* prefer strerror() over sys_errlist[], for sparcv9-solaris2.8Ken Raeburn2001-03-081-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13061 dc483132-0cff-0310-8789-dd5450dbe970
* * cmds.c (globulize): Use correct address of globbed results whenKen Raeburn2000-11-211-2/+4
| | | | | | freeing storage. Patch from Nalin Dahyabhai <nalin@redhat.com>. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12869 dc483132-0cff-0310-8789-dd5450dbe970
* renamed getmode() and setmode() to get_mode() and set_mode() to avoid a ↵Alexandra Ellwood2000-08-291-4/+4
| | | | | | collision with Mac OS X file permission bits manipulation functions of the same name which get included through unistd.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12633 dc483132-0cff-0310-8789-dd5450dbe970
* * domacro.c: Compiler warning cleanups and fix the overflow fix toEzra Peisach2000-08-171-135/+143
| | | | | | | | | | | | | | | | index the proper array. * cmds.c, cmdtab.c, ftp.c, ftp_var.h, getpass.c, glob.c, main.c, radix.c, ruserpass.c, secure.c, secure.h: Compiler warning cleanups including providing prototypes, cleanup of assignments in conditionals, including unistd.h and stdlib.h (if present), declaring local functions as static. * Makefile.in: Do not compile pclose.c - the code is not used. About 600 warnings down.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12622 dc483132-0cff-0310-8789-dd5450dbe970
* 1.2-beta4 pullupKen Raeburn2000-06-301-5/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12470 dc483132-0cff-0310-8789-dd5450dbe970
* Volatile decls as needed.Ken Raeburn2000-02-191-1/+1
| | | | | | | Format attribute declarations for gcc. Deleting some unused variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12058 dc483132-0cff-0310-8789-dd5450dbe970
* * cmds.c (user): Replace "oldlevel" with the more descriptiveGeoffrey King1998-08-281-4/+4
| | | | | | | | | | "oldclevel". Also, replace all occurrences of "dlevel" in this function with "clevel". * ftp.c (login): Test whether or not the server actually requires "PASS dummy" by first sending "PWD" and checking the return value. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10898 dc483132-0cff-0310-8789-dd5450dbe970
* * ftp.c, cmds.c, cmdtab.c, main.c, secure.c, ftp_var.h: ReplaceGeoffrey King1998-08-121-25/+100
| | | | | | | | | | | | | | | global variable level with separate variables clevel and dlevel for the control channel and data channel protection levels, respectively, so that the user may specify separate protection levels for each channel. Similarly, functions such as getlevel and setlevel are now getclevel/getdlevel, and setclevel/setdlevel. * cmdtab.c: Add new FTP commands "cprotect" to allow the user to set the control channel protection level (similar to "protect"), and "ccc" (Clear Command Channel) which sets the control channel protection level to clear (per the RFC). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10804 dc483132-0cff-0310-8789-dd5450dbe970
* Fix -n so that it doesn't disable authentication but does disable login. [38]Sam Hartman1998-04-251-2/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10543 dc483132-0cff-0310-8789-dd5450dbe970
* Add -x (automatically encrypt) and -f (forward credentials) optionsDan Winship1998-01-301-8/+7
| | | | | | | Don't complain about missing ftp/hostname principal if there's a usable host/hostname. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10387 dc483132-0cff-0310-8789-dd5450dbe970
* Fix Y2K bug in the parsing of the MDTM command. [krb5-appl/399]Theodore Tso1997-05-021-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10083 dc483132-0cff-0310-8789-dd5450dbe970
* * cmds.c (setpeer): Apply jik's fix so "-n" actually works asTom Yu1996-09-271-2/+3
| | | | | | intended. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9130 dc483132-0cff-0310-8789-dd5450dbe970
* this commit includes all the changes on the OV_9510_INTEGRATION andMarc Horowitz1996-07-221-1/+1
| | | | | | | | | OV_MERGE branches. This includes, but is not limited to, the new openvision admin system, and major changes to gssapi to add functionality, and bring the implementation in line with rfc1964. before committing, the code was built and tested for netbsd and solaris. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8774 dc483132-0cff-0310-8789-dd5450dbe970
* some fixes changes from marc. changelogs will be merged laterMark Eichin1996-04-091-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7760 dc483132-0cff-0310-8789-dd5450dbe970
* update from cygnus sourcesMark Eichin1996-02-241-0/+1
| | | | | | | | | | | | | Fri Feb 16 15:50:51 1996 Mark Eichin <eichin@cygnus.com> * ftp.c (do_auth): return status handling fixes from kbalk@hp.com. Tue Jan 16 19:05:31 1996 Mark Eichin <eichin@cygnus.com> * ftp.c (login): move do_auth ... * cmds.c (setpeer): ... to just before login call. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7511 dc483132-0cff-0310-8789-dd5450dbe970
* Portability fixes: don't declare errno everSam Hartman1996-01-191-1/+3
| | | | | | and don't declare sys_errlist unless you need to. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7336 dc483132-0cff-0310-8789-dd5450dbe970
* Cygnus implementation of GSSAPI-based ftp client and server.Mark Eichin1996-01-141-0/+2337
See README.gssftp for history and details. Bugs, comments to <eichin@cygnus.com>. Be sure to forward any changes made at MIT as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7312 dc483132-0cff-0310-8789-dd5450dbe970