Commit Graph

310 Commits

Author SHA1 Message Date
sperber f5cd1798d3 THREAD-FORK doesn't take an additional second argument (yet). 2002-01-08 15:02:39 +00:00
mainzelm 0c7e75a2b5 + Use fork-thread
+ Replaced host-name-or-empty by host-name-of-ip
2002-01-08 14:02:39 +00:00
mainzelm f6d210ea86 Fixes for the reader. 2002-01-08 12:53:27 +00:00
interp f9dc21c767 netrc:parse handles following conditions correctly by returning
a default netrc-record:
* the specified file does not exist
* the file does exist but does not have the correct permissions
In both cases a warning is printed on (current-error-port)
So, netrc:parse always returns a usable record.
If you want to catch the errors use netrc:try-parse
2001-12-27 16:45:32 +00:00
interp 89bb20c63e * in netrc.scm:
- changes to make Eric's code fit our desires:
    . functional concept (netrc:parse returns a record that has to be carried with)
    . usual errors (no such file, no such machine) are caught and handled adequately
      (nevertheless the user can get the errors, if he wants to)
    . netrc:parse works when no ~/.netrc file exists
    . default-values (file-name, login, password) can be set while
      calling netrc:parse
    . netrc:lookup, netrc:lookup-password, netrc:lookup-login return
      default-values by default (can be switched off)
  - removed bug in netrc:lookup

* in modules.scm:
  new export in netrc-interface: netrc:try-parse (returns error if
   file does not exist)

* in ecm-utilities:
  rewrote nslookup-fqdn: uses host-info now
2001-12-18 18:08:08 +00:00
mainzelm 75633864c3 Changes from V200-alpha3 of PLT. 2001-12-14 14:09:35 +00:00
mainzelm 29161884e9 Changed the Copyright for Eric's files to BSD style. 2001-11-15 11:12:24 +00:00
interp 20a12efc6d * beautifying modules.scm by ...
* ... creating sunet-utilities.scm
2001-11-13 18:37:05 +00:00
interp a76848a6c6 * let ftpd generate more useful output on error conditions
* include format-net package in ftpd package
2001-11-13 13:50:24 +00:00
mainzelm 70306ad10e Added port from PLT's xml library. 2001-10-29 08:48:42 +00:00
mainzelm e90c8b14c3 Don't loose if the remote host has no DNS entry. 2001-10-29 08:39:15 +00:00
mainzelm aa2f04195e + Moved http-error from the forked process into the server process.
+ Set stdin and stdout to the current-in/output-port after forking.
2001-10-24 11:02:46 +00:00
mainzelm 612ca1e0ad Moved to new package layout. 2001-10-08 17:37:30 +00:00
mainzelm c4778aa49c Fixed broken usage of string-join. 2001-10-08 17:33:13 +00:00
mainzelm af7288f535 Revert to old bufpol name. 2001-10-08 17:32:49 +00:00
interp 4063467f96 * Files made fit for scsh 0.6
* Added further features from Eric Marsden:

   * ftp.scm -- a module for transfering files using the FTP protocol

   * pop3.scm -- a module for accessing a maildrop using the POP3
     protocol

   * netrc.scm -- a module for parsing users' ~/.netrc files to
     obtain authentication information

   * nettime.scm -- a module for obtaining the time from remote
     machines, using either the Time (rfc868) or the NetTime (rfc867)
     protocols.

Unfortunetaly,
pop3.scm needs further revision because of undefined procedures and
netrc.scm needs further revision.

Nevertheless they were added because, beside the problems, they fit
scsh 0.6.
2001-09-12 18:53:50 +00:00
interp 66907428e0 Minor change in ls-path. 2001-09-10 12:26:40 +00:00
interp 3c200d4db9 even less STAT-calls
(removed STAT-calls when called with RECURSIVE)
2001-09-07 16:38:38 +00:00
interp 5973322619 RECURSIVE - flag works now (removed bug from previous revision). 2001-09-07 15:23:08 +00:00
interp 69271875a9 COLUMNS - flag works now (removed bug from previous revision). 2001-09-07 15:22:02 +00:00
interp a9a269043f changes made to
* avoid too many STAT-calls
* show executable-flag (*) for regular files
2001-09-07 15:08:37 +00:00
interp 669e5ab4a8 contents of CONDITIONALS.SCM are not used any more
contents of TOOTHLESS.SCM can be found in modules.scm
2001-08-20 11:33:04 +00:00
interp 6c702e9a03 sunet can be used with scsh 0.6 now (hopefully).
explicitly named every interface
moved TOOTHLESS.SCM to MODULES.SCM
removed macros from CONDITIONALS.SCM (UNLESS, WHEN, ?, SWITCH, SWITCHQ)
  thereby removed conditionals.scm and the modules SWITCH-SYNTAX and CONDHAX.
2001-08-20 11:31:03 +00:00
interp a741498c59 ftpd.scm: corrected typo; ftpd.scm.doc: doc for ftpd.scm 2001-08-09 10:55:08 +00:00
interp 3cc5d8c837 Changed syslog-levels for following facilities:
changes concerning CONNECTIONS and the PUT (STOR) command are logged as NOTICE
GET (RETR) command and all other commands are logged as INFO
every thing else is logged as DEBUG

internal errors, unix errors and the reaching of unreachable case-branches are logged as NOTICE
success (as long as interesting) and failure of commands are logged as INFO

the debug messages are to used in cooperation with the other levels, so if you want to do debugging, let all messages be put in one file.
2001-07-24 17:11:42 +00:00
interp cd5e03ec9a PARSE-URI modified: search-part is now correctly recognized, no matter frag is given or not 2001-07-16 11:31:41 +00:00
interp a90dfae496 * finished adding syslogs to ftpd
* trim-spaces doesn't throw exception on emtpy strings any more
* spawn-thunk in FTPD moved to new procedure
* always catching SOCKET->STRING errors
* log-calls don't produce extra calculations anymore
* consequently logging reply codes
: ----------------------------------------------------------------------
2001-07-13 17:21:39 +00:00
sperber f4db620dd9 Free SYSLOG parameters so we can set them from the outside. 2001-07-10 12:06:59 +00:00
sperber 2c6d19ef63 Simplify and debugify NORMALIZE-PATH.
Catch ERRNO/NOTCONN out of SOCKET->STRING.
2001-07-07 19:37:53 +00:00
interp dbebe4e8ef even more syslogs inserted 2001-07-07 15:19:52 +00:00
uid35759 e63ed67403 Open THREADS-INTERNAL into FTPD. 2001-07-04 11:34:20 +00:00
interp 747f3cb054 added more syslog messages 2001-06-29 15:10:28 +00:00
interp 5b666fb2e4 using WITH-SYSLOG-DESTINATION 2001-06-26 13:15:56 +00:00
interp 1e164e08b2 Starting to insert syslog-calls in ftpd. 2001-06-22 14:01:38 +00:00
mainzelm 2278144662 Now that bind is fixed in scsh we can drop internet-address/any.
Use scsh's new port->socket to determine the address of the host via
the session-control-input-port.
2001-06-20 16:21:41 +00:00
sperber 899a7d6f30 Use INTERNET-ADDRESS/ANY (who knows if this is right) instead of
(THIS-HOST-ADDRESS).
2001-06-20 13:33:03 +00:00
sperber 7b285f1fd3 Optional separator for FORMAT-INTERNET-HOST-ADRESS (which had been
ripped out at some point).
2001-06-20 13:25:41 +00:00
sperber 10567fd22e Fix arg error in HANDLE-RNTO. 2001-06-20 09:22:59 +00:00
sperber 1247e7eed9 Pass home directory of the anonymous user explicitly.
Don't setgid and setuid no more.  It's wrong and evil in a
multithreaded environment.
2001-06-20 09:21:37 +00:00
sperber 9fd49a135d Restore old code for determining the anonymous ftp home in preparation
for replacing it by a more explicit mechanism.
2001-06-20 09:12:49 +00:00
sperber 76d5ce3a74 Use BIG-UTIL instead of rolling our own stuff. 2001-06-20 09:08:01 +00:00
sperber b99348651d Handle quit more correctly:
Previously, it tried to write a final reply even into a socket which
had been shut down from the other end.  This would terminate the
connection thread and prevent a regular close.

So we introduce an IRREGULAR-QUIT condition for this purpose and guard against EOF better.

Also, revert to not using INTERNET-HOST-ADDRESS-TO-BYTES.
2001-06-20 09:02:22 +00:00
sperber 92b47b6487 Revert use of INTERNET-HOST-ADDRESS-FROM-BYTES as it's gone from scsh. 2001-06-19 11:33:01 +00:00
sperber 9fe34c1ce0 The scsh gods have decided it's now BUFPOL/NONE instead of
'BUFPOL/NONE.
No problem, I'm just a drone, hit me.
2001-06-19 11:10:38 +00:00
sperber 2c1b13bd60 Catch not-connected error to SHUTDOWN-SOCKET.
Close socket upon finish.
2001-06-19 10:48:45 +00:00
sperber db59a087ab Don't list files as directories. 2001-06-09 09:33:37 +00:00
sperber 3f178f99d0 Display relative filenames in directory listings. 2001-06-09 09:28:51 +00:00
interp 3e6277cfbf *** empty log message *** 2001-06-05 12:46:05 +00:00
interp ee887b6b04 stringhax.scm documented.
trim-spaces rewritten.
2001-06-05 12:37:09 +00:00
sperber 6512d291cc Make SPLIT-ARGUMENTS compatible with scsh >=0.5.2. 2001-06-03 16:46:54 +00:00