Commit Graph

161 Commits

Author SHA1 Message Date
Johan Danielsson
08c61d3cd8 if builtin_ls failes, return error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10859 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-02-28 15:50:14 +00:00
Johan Danielsson
7fc606fb54 (dataconn): don't wait forever on accept
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10697 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-13 09:17:14 +00:00
Jacques A. Vidrine
c77bd77f26 On systems with IP_PORTRANGE, have ftpd use `high-numbered'
ports by default.  Add a -U option to get the old behavior.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-28 19:02:16 +00:00
Assar Westerlund
84e8616c84 try to handle GLOB_MAXPATH (FreeBSD)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10127 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-19 10:00:25 +00:00
Johan Danielsson
3b5cadd654 (do_store): call closefunc before claiming that everything went ok, if
the close fails the file might not have been stored properly


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9792 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-04-19 14:41:29 +00:00
Assar Westerlund
063bc2b80a always use GLOB_LIMIT
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9775 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-26 11:41:16 +00:00
Assar Westerlund
b1cd585ea9 (send_file_list): use GLOB_LIMIT if defined
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9755 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-25 23:55:08 +00:00
Assar Westerlund
67422a6b02 s/[gs]et_progname/[gs]etprogname/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:44:56 +00:00
Johan Danielsson
ee0c58e853 (pasv): close already open passive port
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9478 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-18 09:14:59 +00:00
Johan Danielsson
1034af2170 make it possible to set list of good filename characters from command
line


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9370 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-11 18:47:54 +00:00
Johan Danielsson
b2603d5c76 some spec-violating mirror software assumes that you can do things
like `LIST -CF'; don't pass `--' to ls so this actually works


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9336 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-10 21:46:10 +00:00
Johan Danielsson
167b0c5133 change bad filename message slightly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-10-23 01:58:52 +00:00
Johan Danielsson
79e18ed80a change redundant password message to something people can understand
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9018 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-31 06:08:49 +00:00
Assar Westerlund
5f648d3799 use socklen_t where appropriate instead of int
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-09 20:53:11 +00:00
Assar Westerlund
3db67e5f96 remove unused variable
fix end of comment


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8857 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-27 15:28:13 +00:00
Assar Westerlund
7cef44466a (krb5_verify): only do AFS stuff if KRB4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8852 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-27 05:39:30 +00:00
Assar Westerlund
09a33f1b3c do not call setproctitle with a variable as the format string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8567 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-06 23:59:56 +00:00
Assar Westerlund
431f160b1e (krb5_verify): static-ize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8503 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-01 19:12:23 +00:00
Assar Westerlund
5700b02c69 (krb5_verify): conditionalize on KRB5
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8497 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-01 13:48:13 +00:00
Assar Westerlund
6fdb2be164 (dologout): add #endif
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8483 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-29 04:02:23 +00:00
Assar Westerlund
ab3e6a4ead support for authenticating user with krb5. From Daniel Kouril <kouril@ics.muni.cz>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8431 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-21 02:41:09 +00:00
Assar Westerlund
b360b2499d remove unused variables
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8301 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-05-29 16:51:40 +00:00
Assar Westerlund
94f3bfaaaf (args): should use `debug'. From Onno van der Linden
<onno@simplex.nl>.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8266 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-05-18 00:27:58 +00:00
Johan Danielsson
2d6b3bbc99 call list_file for broken usages of nlst too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8028 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-09 14:02:16 +00:00
Johan Danielsson
ecfb13fe6c some cleanup:
* pass `--' to all programs after args
 * use `show_file' to output contents of various files
 * use built-in ls if there is no external


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7719 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-01-05 13:46:04 +00:00
Assar Westerlund
f8546e0754 don't use sa_len as a parameter, it's defined on Irix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7657 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-21 17:55:56 +00:00
Johan Danielsson
7e882f58c1 (dataconn): make sure from points to actual data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7649 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-21 12:02:35 +00:00
Assar Westerlund
d0c80517a5 (dolog): update prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7533 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-05 12:56:47 +00:00
Assar Westerlund
c2b9f6c147 (dolog): use getnameinfo_verified
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7525 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-05 10:53:06 +00:00
Assar Westerlund
fe81c21fd5 replace inaddr2str by getnameinfo
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7516 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-05 00:19:04 +00:00
Assar Westerlund
8dd25ed0b9 (getdatasock): make sure to keep the port-number of the outgoing
connections.  It has to be `ftp-data' or some people might get upset.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7455 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-30 19:18:38 +00:00
Assar Westerlund
f331fef9a4 (args): set correct variable when `-l' so that logging actually works
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7451 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-30 15:58:06 +00:00
Assar Westerlund
b58531efe4 (args): use arg_counter for `l'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7355 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-12 15:59:42 +00:00
Assar Westerlund
b13b9064ff foo const
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7294 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-01 04:22:38 +00:00
Assar Westerlund
a42059f379 (list_file): correct prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7293 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-01 04:20:38 +00:00
Assar Westerlund
408574f1b0 some const-poisoning
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7244 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-27 23:51:52 +00:00
Assar Westerlund
4e75081dcf (args): add -B' as an alias for --builtin-ls' to allow for stupid
inetds that only support two arguments.  From Love <lha@s3.kth.se>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7243 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-27 23:28:43 +00:00
Assar Westerlund
38c83dd6ad (show_issue): don't interpret contents of /etc/issue* as printf
commands.  From Brian A May <bmay@dgs.monash.edu.au>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7233 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-26 11:55:19 +00:00
Johan Danielsson
ecf66fc91e change -l' flag to use arg_collect (this makes -ll' work again)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7186 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-18 17:19:14 +00:00
Johan Danielsson
ce4361a985 (list_file): pass filename to ls
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7180 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-18 09:43:35 +00:00
Johan Danielsson
4baca61c54 (main): make this use getarg; add `list_file'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7088 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-03 16:38:14 +00:00
Assar Westerlund
bf75fac82a large strc{py,at}_truncate -> strlc{py,at} replacement
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6984 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-16 20:41:57 +00:00
Johan Danielsson
15171c7b29 (do_login): show issue-file
(send_data): change handling of zero-byte files


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6836 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-19 09:51:22 +00:00
Assar Westerlund
0d957a3741 add missing brace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6817 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-15 23:29:38 +00:00
Assar Westerlund
2d5a5da6a2 (send_data): avoid calling mmap with `len == 0'. Some mmap:s rather
dislike that (Solaris) and some munmap get grumpy later.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6804 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-12 22:11:54 +00:00
Assar Westerlund
fea0b36f3c make it more AF-neutral and v6-capable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6631 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-28 13:36:35 +00:00
Assar Westerlund
12b238c275 (send_data): remove a warning
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6324 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-15 03:51:47 +00:00
Assar Westerlund
f88e911ef5 rename getline -> ftpd_getline
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6160 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-08 02:22:57 +00:00
Johan Danielsson
5404e75905 remove definition of KRB_VERIFY_USER (moved to config.h)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5883 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-08 13:07:38 +00:00
Assar Westerlund
2ce2b33291 (pass): fall-back for KRB_VERIFY_SECURE
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5702 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-22 21:22:07 +00:00