X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=scratchy.git;a=blobdiff_plain;f=scratchy.scm;h=5e6a37f62fb927f0325a53e84642a1ebc408a30d;hp=409047d0caeec3ffa143a3b69bfba8616475f202;hb=c2c6656ac9d361bc7cb983e8f6c23abd8f8ee73b;hpb=045c10a05d15f3a19bddfa8be26979e73f150cd0 diff --git a/scratchy.scm b/scratchy.scm index 409047d..5e6a37f 100644 --- a/scratchy.scm +++ b/scratchy.scm @@ -76,8 +76,8 @@ (serve-selector selector config))) (print "... served selector '" selector "'. Closing connection.")) (o (exn) - (print-error-message o out-port) (print-error-message o) + (display "Invalid selector.\r\n.\r\n" out-port) (print "Error while attempting to serve selector " selector ".")))) (begin (print "Connection from blacklisted IP. Closing.") @@ -280,7 +280,7 @@ dir-selector config)) ((type display-string selector) (serve-record (list type display-string - (make-pathname dir-selector selector) + (normalize-pathname (make-pathname dir-selector selector)) (config-host config) (config-port config)) dir-selector config)) ((display-string selector) @@ -350,9 +350,9 @@ (define (main) (let* ((progname (pathname-file (car (argv)))) (config (make-config '() '() 70 #t '() '() '() '()))) - (if (null? (cdr (argv))) + (if (null? (command-line-arguments)) (print-usage progname) - (let loop ((args (cdr (argv)))) + (let loop ((args (command-line-arguments))) (let ((this-arg (car args)) (rest-args (cdr args))) (if (string-prefix? "-" this-arg)